I have a string like below and unable to extract accuratly with rex command please suggest any alternative way.
_raw----------------
{lable:harish,message: Say something, location:India, state:TS,qual:xyz}
{message: say nothing,lable:harish, location:India, state:TS,qual:xyz}
{lable:harish, location:India, state:TS,qual:xyz,message: say splunk splunk answers}
The message value is randomized location and I need to pick the message value.
When I try with below command it is not considering the proper end position. Please suggest
|rex "message:(?<Message_value>.*)[,|}]" |table Message_Value
... View more