Feature Request: Output logs to network connection
asachs01 opened this issue · 3 comments
asachs01 commented
As a flog user, I'd like to be able to use it to send test logs to a log management system like Splunk or Graylog. Presently, I have to output to a file, or try and netcat the output to a specific endpoint, which seems rather cumbersome. Adding the ability to directly output to a given endpoint (like an IP/hostname) would shorten the amount of steps I need to take to send flogs logs off.
mingrammer commented
You can output the logs to stdout (default mode), and pipe the output to network connections.
$ flog -n 100 | nc ...
asachs01 commented
@mingrammer Right, completely doable and it's what I'm currently doing. But it would be nice to have a --host
sort of option to be able to specify a remote host rather than using nc.