Skip to content

the ignore_older of tail config is of no effect #716

Closed
@yubobo

Description

@yubobo

image
but,in fact,add all files to scan the queue whenever the file is generated.

Activity

yubobo

yubobo commented on Aug 18, 2018

@yubobo
Author

image

yubobo

yubobo commented on Aug 18, 2018

@yubobo
Author

image

yubobo

yubobo commented on Aug 18, 2018

@yubobo
Author

I change the value of ignore_older to 1m ,the problem is the same.

edsiper

edsiper commented on Aug 20, 2018

@edsiper
Member

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.

self-assigned this
on Aug 20, 2018
added a commit that references this issue on Dec 10, 2019
added a commit that references this issue on Dec 10, 2019
acarsercan

acarsercan commented on Dec 27, 2019

@acarsercan

Someone be kind enough to paste an example config with ignore_older & parser

Thanks

avdhoot

avdhoot commented on Jul 19, 2020

@avdhoot

@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
   
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @edsiper@avdhoot@yubobo@acarsercan

      Issue actions

        the ignore_older of tail config is of no effect · Issue #716 · fluent/fluent-bit