Question: how can I make grok read only the first 18 characters from this string "nameOfItem=Oranges of California and Florida". With the way I have, I am getting the last 18 cut off.
Please help.
grok pattern used:
%{LOGLEVEL:loglevel}|%{DATA:rawtimestamp}|%{NUMBER:response}|[%{DATA:maindata}]](%{DATA:className}@%{DATA:thread_prefix}:\s*(?>')%{NUMBER:tno}(?>')\s*%{DATA:thread_postfix})\s*{%{DATA:main_message}.{18}}
Log line to be read:
[DEBUG|20180908 092350 344|22432631|[xxxx:22:xx1234:A1E8Bxxxxxxxxxxxx:N::S]](RequestManager@ExecuteThread: '999' for queue: 'weblogic.kernel.Default') {nameOfItem=Oranges of California and Florida}