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

Cannot have multiple outputs on the same time #3

Open
YueXX opened this issue Aug 24, 2017 · 5 comments
Open

Cannot have multiple outputs on the same time #3

YueXX opened this issue Aug 24, 2017 · 5 comments

Comments

@YueXX
Copy link

YueXX commented Aug 24, 2017

The plug-in cannot have multiple outputs for different streams. If initialize the second one, the first one will stop working

@MuskratAggie
Copy link

I just ran into this today. Not only does it stop writing to folder it was, it starts writing to the folder for the stream that the new messages come in to.

@cukal
Copy link

cukal commented Dec 23, 2019

Yup. Only one output seems possible without upsetting the already configured output, but it's possible to refactor it and build & install it again as a new separate plugin. It really is one the most useful output plugins but I needed several output streams and fixed it this way.

@mrtndimitrov
Copy link

Yup. Only one output seems possible without upsetting the already configured output, but it's possible to refactor it and build & install it again as a new separate plugin. It really is one the most useful output plugins but I needed several output streams and fixed it this way.

Hi, how did you refactor it? Changing just the name doesn't seem to work.

@mrtndimitrov
Copy link

Yup. Only one output seems possible without upsetting the already configured output, but it's possible to refactor it and build & install it again as a new separate plugin. It really is one the most useful output plugins but I needed several output streams and fixed it this way.

Hi, how did you refactor it? Changing just the name doesn't seem to work.

I've changed the code to allow this. It was using static members which were overwritten by the new instances of the plugin. I created a fork (https://github.com/mrtndimitrov/graylog-delimited-file-output-plugin) if someone else wants to allow multiple output files.

@rswestmoreland
Copy link
Owner

Yup. Only one output seems possible without upsetting the already configured output, but it's possible to refactor it and build & install it again as a new separate plugin. It really is one the most useful output plugins but I needed several output streams and fixed it this way.

Hi, how did you refactor it? Changing just the name doesn't seem to work.

I've changed the code to allow this. It was using static members which were overwritten by the new instances of the plugin. I created a fork (https://github.com/mrtndimitrov/graylog-delimited-file-output-plugin) if someone else wants to allow multiple output files.

I think this is great, thank you for figuring out how to address this issue.

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

5 participants