-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Term breaks my field value into multiple values. #364
Comments
I think it's more a question on analyzer. You should modify your mapping. See http://www.elasticsearch.org/guide/reference/mapping/ |
Ah I'll look into that. Thanks! |
how should one change the mapping? |
or rather - is there a default recommendation for logstash users? |
Elasticsearch allows you to setup a default-mapping.json file in the { Curtis Ruck On Mon, Nov 4, 2013 at 6:28 AM, Klavs Klavsen [email protected]:
|
@ruckc Thank you very much. |
so - if I set my host to type string - then it will stop trying to split hostnames such as "server-pre01" into two? |
No, the special juju is the 'not_analyzed'. Also, i use a custom pure-java Curtis Ruck On Mon, Nov 4, 2013 at 9:23 AM, Klavs Klavsen [email protected]:
|
Not sure if this is still an issue but you can use "{field_name}.raw" now to get the non-analyzed version of the value. For example, if your field name is "host" you can use "host.raw". |
You can only use .raw if it is in your mapping. If you're a logstash user it usually will be. |
If you are not using Logstash to process your logs but and you still want to have the .raw mappings automatically created for you nightly indices, you can run the following commands:
This will setup the dynamic mapping for the logstash-YYYY.MM.DD indices. Keep in mind that the .raw mappings will only be present for the new indices. Logstash 1.3+ does this automatically. |
Kibana users: for the Terms panel (e.g. pie graph) you can use |
Eh, in logstash version 1.4 the mapping removed the multifield type and now I can't find the raw field. It's very frustrating. Help? |
.raw works!!!!!!!! Cheerss.. |
Hi I still have issues with the aggregation in Kibana 3.1.2, even after setting the fields as not_analyzed. This is how the fields are defined "cID":{"type" : "multi_field","fields" : {"cID": {"type": "string"},"raw" : {"type" : "string", "index" : "not_analyzed"}}}, Is my definition right or am I missing something? |
@Darpan205 Thanks. |
@greenapplepark Did you found out how to do it in the end ? I'm asking myself the same question |
@radiumx3 Try to put the template above and then you can get a *.raw field |
this does not seem to be working for fields that have an array/list type. how should i specify the analyzer for such fields? please advise |
Updated protofiles.
My field value looks like "UzC1qjJMt_afb-gjOewA:9". Term breaks it into three different values "UzC1qjJMt_afb", "gjOewA" and "9". It looks pretty consistent for all the field values. It sounds like an issue with term. Can somebody confirm it? Thanks.
The text was updated successfully, but these errors were encountered: