In my java application, I have added some data to the logs, which then show up in splunk as:
{
....
"duration":"200",
"methodName":"testMethod",
"className":"com.test.TestClass",
....
}
Currently, if I have to search for these fields, I need to add something like following to filter query:
log=\*"methodName":"testMethod"*
Is there a way to add these custom fields to filter query, so that I can have in my query like:
methodName="testMethod"
And then I also need to use this data to generate charts and visualizations.