I am using java rest api sdk to retrieve events from the Splunk's search app. I retrieved the field called splunk_server during search time and i set the value for it. Then i tried to format the log message in a key=value pair pattern. eg. splunk_server=remoteserver. I wanted the value for the splunk_server that i set to appear for the new event added to splunk. But the default value appeared instead.
Is there any way to set the value for the splunk_server and show the value i set in Splunk server whenever i add new events?