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

Feature Request: Output logs to network connection #39

Open
asachs01 opened this issue Jan 13, 2021 · 3 comments
Open

Feature Request: Output logs to network connection #39

asachs01 opened this issue Jan 13, 2021 · 3 comments

Comments

@asachs01
Copy link

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
Copy link
Owner

You can output the logs to stdout (default mode), and pipe the output to network connections.

$ flog -n 100 | nc ...

@asachs01
Copy link
Author

asachs01 commented Feb 8, 2021

@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.

@lebe-dev
Copy link

@asachs01 this feature will add unnecessary complexity. if you don't want to use pipes with netcat, you can wrap it into a bash script with arguments.

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

No branches or pull requests

3 participants