Apologies if this is straight forward but as a newbie here I can't quiet
figure this out.
I have hekad running on a client to sending to a central server also
running hekad
Client side logstreamer is like this
[myapp-logs]
type = "LogstreamerInput"
log_directory = "/opt/logs"
file_match = '(?P<LOGFILE>[^/]+).log.(?P<DATE>\d+)_(?P<HOUR>\d+)$'
differentiator = ["LOGFILE", ".log.", "DATE", "_" , "HOUR"]
Server side
[myapp-logs]
type = "FileOutput"
message_matcher = "Logger =~ /myapp/"
path = "/opt/log-data/myapp/heka.%{Logger}"
encoder = "PayloadEncoder"
What I am attempting to to is use the "Logger" as the dynamic name for the
file on the receiving end. For reasons outside my control I need to make
the destination file name the same as the source file name to allow some
third-party processing to continue using the expect naming scheme.
I end up with is the file called heka.%{Logger} rather than the logger
name I was expecting from differentiator.
Should I be able to use variables in the path?
Do I have the syntax correct?
or
Do I need to write my own Output plugin to do this?
And lastly is there an easy way to search the mailing list archives.
Thanks
alan
_______________________________________________
Heka mailing list
[email protected]
https://mail.mozilla.org/listinfo/heka