By using Splunk SDK, able to use the below search string and get the results from SPlunk
String searchQuery_string = "search * | head 100";
We have a field by name message in Splunk, which can have values with spaces.
Example message 1 : "Started initialization"
Example message 2 : "Completed initialization in 86 ms"
We want to run search with the message="Completed i*"
In Splunk UI search this is working fine and giving results
When tried with below as the Query string, ZERO Results
String searchQuery_string = "search message='Completed i*'";
String searchQuery_string = "search message=Completed%20i*";
Kindly help me in this regard
normal Java escape character () worked
String searchQuery_string = "search message=\"Completed i*\"";
normal Java escape character () worked
String searchQuery_string = "search message=\"Completed i*\"";