Take a look at https://hekad.readthedocs.org/en/latest/pluginconfig/logstreamer.html#logstreamerplugin, if you haven't already. It has fairly well-documented examples of doing precisely that, using a 'differentiator' when monitoring a directory structure.
-- Robison Jacka / OpsEng / Weebly On Mon, Feb 8, 2016 at 11:33 AM, Eli Flesher <efles...@lyft.com> wrote: > Hello Everyone, > > We’re exploring using Heka internally as a daemon to push up periodically > written files and submit changes to an API for consumption. > > As part of this project, I’ve written an Encoder that formats messages > from several LogStreamerInputs into our message format before going to an > Output plugin that submits the messages. > > I’ve run into one problem. I need to know the file name being monitored in > order to determine parts of the message body. Looking at the > LogStreamerInput code, I can’t see a way that this is exposed, but I’m also > very new to Go. > > Can anyone guide me on how I might accomplish this? > > > Eli > -- > — > *Elijah Flesher* | *Lyft* <http://lyft.me/> | *Software Engineer* > 206.661.4697 | @eliflesher > > _______________________________________________ > Heka mailing list > Heka@mozilla.org > https://mail.mozilla.org/listinfo/heka > >
_______________________________________________ Heka mailing list Heka@mozilla.org https://mail.mozilla.org/listinfo/heka