Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tail input plugin #1082

Merged
merged 3 commits into from Apr 26, 2016
Merged

Tail input plugin #1082

merged 3 commits into from Apr 26, 2016

Conversation

sparrc
Copy link
Contributor

@sparrc sparrc commented Apr 22, 2016

WIP, todo:

  • parse and add each log message to the accumulator
  • support glob file matching, as in the filestat plugin
  • unit tests
  • update changelog & readme
  • write a plugin readme

@sparrc sparrc force-pushed the tail-input branch 9 times, most recently from df9bcf1 to 0328a9d Compare April 25, 2016 19:37
@panda87
Copy link

panda87 commented Apr 26, 2016

Looks great @sparrc
Im wondering if kakfa output supports routing to a different topics by the tag or anything else.
Another question if it supports listening to docker.sock to retrieve docker containers logs (stdout,stderr)

@sparrc
Copy link
Contributor Author

sparrc commented Apr 26, 2016

thanks @panda87, not sure what you mean about kafka, but I can look into support for tailing sockets

@sparrc
Copy link
Contributor Author

sparrc commented Apr 26, 2016

looks like the "tail" doesn't work on unix sockets, I think that would need to be a separate plugin, more similar to the tcp_listener and udp_listener plugins

@sparrc sparrc merged commit 44c945b into master Apr 26, 2016
@panda87
Copy link

panda87 commented Apr 26, 2016

@sparrc I meant that, im using kafka as output plugin, and I think that be able to route logs (files) per kafka topic can be great advantage.
For example, syslog will go to one topic and application log to another.

@sparrc
Copy link
Contributor Author

sparrc commented Apr 26, 2016

If you could open a separate feature request with more details and specific examples, that would be great.

Did you know that telegraf supports measurement filtering? I think this could be used to accomplish what you need. https://github.com/influxdata/telegraf/blob/master/docs/CONFIGURATION.md#measurement-filtering

@sparrc sparrc deleted the tail-input branch April 26, 2016 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants