You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ignore_older option is only available when a Parser is specificied and that parser matched a line, so when the parser lookup the time of that specific line/record it checks if is older than ignore_older or not. It does not apply to the file age, it's record based.
@acarsercan Might late. Set parser=myparser in input plug-in tail. tail plugin will use Time_Key & Time_Format find out correct time to compare.
[PARSER]
Name myparser
Format json
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%L
Time_Keep On
[INPUT]
Name tail
Path /var/log/containers/*.log
Tag containers.*
Refresh_Interval 1
Rotate_Wait 60
Mem_Buf_Limit 5MB
Skip_Long_Lines On
DB /tail-db/tail-containers-state-sumo.db
DB.Sync Normal
Ignore_Older 1m
Parser myparser
Activity
yubobo commentedon Aug 18, 2018
yubobo commentedon Aug 18, 2018
yubobo commentedon Aug 18, 2018
I change the value of ignore_older to 1m ,the problem is the same.
edsiper commentedon Aug 20, 2018
The ignore_older option is only available when a Parser is specificied and that parser matched a line, so when the parser lookup the time of that specific line/record it checks if is older than ignore_older or not. It does not apply to the file age, it's record based.
Ignore_Older is record based
Ignore_Older is record based
input: tail: Ignore_Older is record based (#244)
input: tail: Ignore_Older is record based (#244)
acarsercan commentedon Dec 27, 2019
Someone be kind enough to paste an example config with ignore_older & parser
Thanks
avdhoot commentedon Jul 19, 2020
@acarsercan Might late. Set
parser=myparser
in input plug-intail
.tail
plugin will useTime_Key
&Time_Format
find out correct time to compare.Ignore_Older
to24h
by default to prevent older logs from being ingested on install. SumoLogic/sumologic-kubernetes-collection#664output: docs for default workers setting (fluent#716)