How to map such object fields

How to map such fields?

file.encoding = UTF-8
file.encoding.pkg = sun.io
file.separator = /

Thanks
Sharon.

Depends on what you want to do but I'd probably use keyword data type

In order to index those fields you will need to either rename or alter the structure. Dots in field names are special and will be expanded, which will cause a mapping conflict for file.encoding as this can not at the same time be a string and an object (as it has a sub-field named pkg).

So, if the origin fields are:

file.encoding = UTF-8
file.encoding.pkg = sun.io

and I want to change it to:

file.encoding.type = UTF-8
file.encoding.pkg = sun.io

Which filters should I use?

I assume in this point, I will be able to create object mapping to file.encoding

Thanks
Sharon.

I am not sure I understand your question. Could you please clarify with an example document?

Is this the syntax to rename it?

mutate {  rename  => { "file.encoding" => "file.encoding.filetype" }  }

Thanks
Sharon

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.