I am trying to grok a message text with my grok pattern if i pass the sample data without space my grok pattern works fine but if there is any space in between text it fetch only the first word before space and after space it ignores.
In my case i need to get the whole text with out considering space. I have given my grok pattern and sample data below.
Sample data
"CSIC_agentId:bo peng"
Grok pattern
CSIC_agentId:%{NOTSPACE:apm_agentId.agentId}
Result
{
"apm_agentId": {
"agentId": "bo"
}
}
Expected result:
{
"apm_agentId": {
"agentId": "bo peng"
}
}
Could some one help me to resolve this issue.? Thanks in advance
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.