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

Output Options / FIFO #129

Open
SpudDogg opened this issue Aug 13, 2019 · 5 comments
Open

Output Options / FIFO #129

SpudDogg opened this issue Aug 13, 2019 · 5 comments

Comments

@SpudDogg
Copy link

Is your feature request related to a problem? Please describe.
Sagan can currently only output eve logs to regular file, and only one at a time.

Describe the solution you'd like
The ability to output eve to a file, example /var/log/sagan.json while simultaneously writing to another log, perhaps to a ramdisk /tmp/ramdisk/sagan.json.

Also, Sagan cannot output eve to a fifo. There are workarounds where this does work, however Sagan will not keep the fifo open and let data spool when a reader/listener is not running.

Ideally, I'd be able to write eve to disk and a fifo simultaneously!

Describe alternatives you've considered
I looked into Suricata, and while it does not specify fifo as an output file type, there are options for unix_stream, unix_dgram, etc.

@beave
Copy link
Owner

beave commented Aug 30, 2019

You might want to look at Meer (https://github.com/beave/meer). It will let you write to databases, redis, fifo, etc. at the same time. It's still new software but might help.

@beave
Copy link
Owner

beave commented Aug 30, 2019

Meer will also write to a pipe as well.. :)

@beave
Copy link
Owner

beave commented Oct 25, 2019

Does this help? Or do you think it would still be better to have multiple outputs?

@SpudDogg
Copy link
Author

SpudDogg commented Oct 25, 2019

Does this help? Or do you think it would still be better to have multiple outputs?

Thank you for the replies. I'm not using Meer, instead a combination of ramdisk files as a workaround. I would definitely prefer the ability to have Sagan output directly to a combination of files and fifos. It would be ideal to have the ability to write logs to one file (or fifo) and alerts to a separate file (or fifo).

Thank you again for your work!

@beave
Copy link
Owner

beave commented Nov 15, 2019

What type of data are you trying to inject? I'll have to ponder this more to determine if it's worth the time. That is, is the dev time better here than elsewhere. Thank you.

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

2 participants