I have defined type conversion for id field to long in my grok pattern, still result is showing string. What am I doing wrong here? Please help.
Input: 127.0.0.1 [http-bio-8080-exec-33091] INFO 3747742999301509130
Pattern: %{IPV4:clientip} %{DATA:data} INFO %{BASE10NUM:id:long}
Output:
{
"data": "[http-bio-8080-exec-33091]",
"clientip": "127.0.0.1",
"id": "3747742999301509130"
}
logstash-6.6.0