Hi all,
I have the following list of logfiles:
# heka-logstreamer -config=20-tcollector.toml
Found 1 Logstream(s) for section [TCollectorLog].
Logstream name: [TCollectorLog]
Files: 6 (printing oldest to newest)
/var/log/tcollector/metrics.log
/var/log/tcollector/metrics.log-10-18-2015-1.gz
/var/log/tcollector/metrics.log-10-18-2015-2.gz
/var/log/tcollector/metrics.log-10-19-2015-1.gz
/var/log/tcollector/metrics.log-10-19-2015-2.gz
/var/log/tcollector/metrics.log-10-19-2015-3.gz
How should I write the regexp for the Logstreamer so that “metrics.log” would
be the newest file but not the oldest?
I’ve tried to do that like below that produces the result you see above.
[TCollectorLog]
type = "LogstreamerInput"
log_directory = "/var/log/tcollector"
file_match =
'metrics\.log(-(?P<Month>\d+)-(?P<Day>\d+)-(?P<Year>\d+)-(?P<Seq>\d*)\.gz)?'
priority = ["Year", "Month", "Day", "Seq"]
splitter = "split_on_newline"
decoder = “tcollector_decoder"
Any suggestions?
Thanks,
Timur_______________________________________________
Heka mailing list
[email protected]
https://mail.mozilla.org/listinfo/heka