-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
packetbeat requires "index" setting when using logstash output #574
Comments
Not sure this is worth changing. "index" is meant to make the most common scenario easier, but it's not needed for operation and it's easy to remove it in Logstash if you don't want it. We have "tags" as a generic way to add metadata, and Filebeat has it's own "fields" setting where you can set metadata in a very similar way with what you propose. If you want, we can take as an enhancement request being able to specify metadata as a key value pair for all the Beats. |
I believe it is extremely important to change. My rationale for this because puts new users coming to a beat like this down a design path road where they think that the name of the index to which they should use (if using ES as the final persistence at the end of their LS config) should be configured/determined inside the beat. However that is a very poor place for it, as that should be controlled in the LS config and a mapping done there from generic beats metadata to index name(s). The effort is small I'm assuming, but the clarity and benefit to folks is large. |
as a user switching from logstash-forwarder this was very confusing to me. i thought of filebeat as a simple forwarder, but it now requires me to specify elasticsearch specific configuration in a component, that does not communicate with elasticsearch in this setup. now which configuration is the dominant one? |
The setting acts as a hint for Logstash, allowing users to configure similar indexing strategy via Logstash as Packetbeat would have done itself. Logstash configurations are free to ignore the hint. The hint (and others) are send via the @dedemorton Maybe we can clarify the use of this setting better in the docs. WDYT? |
Agreed. I will clarify the setting in the docs. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue doesn't have a |
It appears currently when using logstash output, there is an
index
setting. This seems very odd, as just because you're shipping to Logstash, does not mean Elasticsearch is involved. For example I could ship to Logstash and then from there ship to S3 or any other similar kind of store and never involve Elasticsearch. Making tight coupling between Elasticsearch and Packetbeat should be removed.https://www.elastic.co/guide/en/beats/packetbeat/current/packetbeat-configuration.html#logstash-output
My suggestion instead would be to remove this setting and then offer up a generic way to apply tags and metadata. For example:
beats.type
packetbeat
The text was updated successfully, but these errors were encountered: