-
Notifications
You must be signed in to change notification settings - Fork 414
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
Question about template usage for ecs #31
Comments
For the example template see here: https://github.com/elastic/ecs/blob/master/template.json#L481 I hope this has the details you are looking for. Good question about the I would expect there is a very small subset of ecs fields where we can expect very long values. There we should probably come up with a good default for ignore_above value that we also recommend to be used. To you have some specific fields in mind? @willemdh Please let us know if you find fields which are missing in ECS but should be there for your project. |
@ruflin The example template indeed clears things up. Untill now I tried to set If I ever encounter something that requires an About missing fields related to F5, most of them seem pretty specific to F5, I guess it's not worth it creating an ECS field for every possible value? Or would you advise making a separate f5 object in ECS containing all F5 related fields? Just another question about template usage, do you think it's possible to use https://github.com/elastic/ecs/blob/master/template.json as a default template for all indices containing data which can leverage ECS? Maybe with a high order, making sure it applies? Or would this mean too much unneeded fields are added to each index? |
The main reason we have For the F5 fields: I don't think we should have a namespace for it in ECS but on your end I would recommend you to put it under Elasticsearch 6.x has become much better in handling sparse documents. So I'm not too worried about having more fields defined then actually needed. I definitively like your idea about having ECS there for all indices but must confess I haven't tested this enough yet. But when I created the template I had exactly something like this in mind. Let me know how this goes. |
@ruflin 1024 seems like a good default, i'll revert my smaller ignore_above's to that. I'll create an f5.* object one of the following months About the ecs template as default for all indices, let me know if you find the time to test this. It could be a start to use this officially for Beats indices one of the following major release. For now I'll integrate the used fields into my existing templates. |
But I don't think it changes anything performance or storage wise on fields where values are all reasonably sized (e.g. 20 to 100 chars). |
I think all my questions in this issue got answered. Tx all. Closing up. |
Hello,
As creator of the following project => https://github.com/OutsideIT/logstash_filter_f5
I'd prefer to follow ECS guidelines in the future and switch current fields if appropriate to ECS fields with dot notation. For now I always used underscores for all my fields, which makes this kind of new.
If I would create a template for some fields, eg.
And switch those to dot notated fields
network.inbound.bytes
andnetwork.outbound.bytes
, would this be the template that I would ideally use for those fields?I saw some examples which also have
"type": "object"
in the template, but I didn't see that everywhere (not in the beat.* object template for example)Thanks for confirming the correct or incorrect use of my f5 template.
Another small question, I tend to use the
ignore_above
parameter alot, which I don't see anywhere in the ECS common field types. Are we 'allowed' to use theignore_above
on ECS fields and can we set them as we want or would this cause mapping conflicts if mixed with data from other indices which have different or noignore_above
parameter for the same field?Grtz
Willem
The text was updated successfully, but these errors were encountered: