-
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
Filebeat: File specific document type, fields, tags #719
Comments
Or we could adopt a fluentd style model where each path just gets a tag. Then later part of the configuration file, we define the fields, index, document_type etc attributes for each tag. For ex,
|
You can have different fields per file if you use one prospector per file and define fields for each prospectors. We already have tags per beat. Are there things you cannot map with the fields in the prospector? |
Ah that should do. I did not notice the multiple prospector. Now just need different tags for different prospector. |
With tags you mean fields? Or is fields not sufficient and you need tags in addition? |
Found this ticket while looking for a possible solution. Hopefully this is a good place. Would be great to have a list of "tags" along with key:value fields per prospector. Such as:
|
@MiguelMoll Can you briefly elaborate on how you use tags differently from fields. It is important for me to understand the use case. |
Hard to answer exactly but going by how we've used If fields weren't strictly key:value where the value has to be a string also a list that would work too.
With The |
If you put tags under fields this should already be possible in the upcoming 1.1 thanks to @magnusbaeck #506 |
Excellent news! Hopefully I didn't derail this ticket too much. |
The question is if the above would also solve the problem from @oazabir ? @MiguelMoll Feel free to try the snapshots for 1.1. Links can be found in this post: https://discuss.elastic.co/t/insufficient-throughput-from-filebeat/39564/4 |
Here is the generic tag / fields implementation @andrewkroh did: #1092 I think this resolves the above issues. Closing this issue, but happy to discuss further. |
Hi, So the index should be created as myap-YYYY-MM-DD |
@sunilmchaudhari This is currently only possible with Logstash. For questions please use https://discuss.elastic.co/c/beats/filebeat and not Github issues. |
We usually host multiple virtual directories in a web server. We need to configure one file beat instance to ship logs of all the virtual directories. However, logs for each file needs to have its own tags, document type and fields. Otherwise they have to be all in one format and gets dumped into one index.
We should have a hierarchical format like this:
path:
The text was updated successfully, but these errors were encountered: