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

Add new config parameter and logic to allow only specific fields to b… #24

Conversation

niteshjain
Copy link

#23

@jordansissel
Copy link
Contributor

This kind of feature, in my opinion, belongs in the codec (output { tcp { codec => .... } }). I'm open to discussion, though :)

@jordansissel
Copy link
Contributor

You can also remove fields (or create new events from existing events) in filters. Can you tell me a story why the tcp output needs this feature and why you might not want to do this with filters?

@niteshjain
Copy link
Author

So my logstash config looks like this:

input {
tcp {...}
}
filter {
csv {
separator => "."
}
}
output {
elasticsearch {...}
tcp {
...
fields => ["column1"]
}
}

The listener for the tcp output is only interested in certain fields.

This might be a very specific use case though.

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.

4 participants