logstash-filter-grok icon indicating copy to clipboard operation
logstash-filter-grok copied to clipboard

Add support of IP elasticsearch mapping type

Open maximpashuk opened this issue 9 years ago • 0 comments

I am using logstash 1.5.2 Currently I can use pattern %{NUMBER:response:int} and resulting elasticsearch document will have mapping "response": { "type": "long" }, Instead of default mapping type string.

Documentation (https://www.elastic.co/guide/en/logstash/master/plugins-filters-grok.html) sad that "Currently the only supported conversions are int and float."

For IP addresses elasticsearch have special IP mapping type https://www.elastic.co/guide/en/elasticsearch/reference/1.7/mapping-ip-type.html

Can IP mapping type also be supported in grok filter for logstash ? Its will be cool to use patterns like %{IPV4:IP:ip} and have documents with ip mapping type

maximpashuk avatar Jul 30 '15 06:07 maximpashuk