Hi All,my log is not out of order.But why does “entry out of order” appear.
Docker logs:
level=error ts=2021-10-26T08:16:30.004639827Z caller=client.go:355 component=client host=192.168.78.126:3100 msg=“final error sending batch” status=400 error=“server returned HTTP status 400 Bad Request (400): entry with timestamp 2021-10-26 08:16:28.932732 +0000 UTC ignored, reason: ‘entry out of order’ for stream: {ConfUri="780679392@public", Level="notice", environment="env–test", filename="/home/mcs/log/cs.log"},”
my conf:
scrape_configs:
- job_name: cs_log
static_configs:- targets:
- localhost
- labels:
environment: ${ENVIRONMENT}
path: /home/mcs/log/{cslog,tmplog}
pipeline_stages: - multiline:
firstline: ‘^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}.\d{6}\s[.]:[.]\s[.]\s.’
max_wait_time: 3s - regex:
expression: (?P\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}.\d{6}).* - timestamp:
source: time
format: “2006-01-02 15:04:05.999999”
action_on_failure: fudge
- targets: