Splunk Search

Background Search query

Siya
Loves-to-Learn

Hi All,

 

I have a Splunk search query executing the in the background(used Send to background option) while this is running my VPN got disconnected and after sometime I have reconnected to VPN and the query is still runing in the background. My question is does it gives me complete results or any incomplete results?

 

Thanks

Labels (1)
0 Karma

_JP
Contributor

You should have complete results based on your description and a couple of assumptions:

 

I am assuming that you are connecting to a remote Splunk instance (probably a Search Head (SH) - aka the Splunk website), and you are not running Splunk locally on your computer.  In that case, you would have complete results.  Your computer does not have to stay connected to a Splunk SH for a background search to complete properly.

0 Karma

Siya
Loves-to-Learn

Thanks for your response.

I have received this error message along with the results.

 Search results might be incomplete! This can occur if the peer unexpectedly closes or resets the connection during a planned restart. Try running your search again. 

0 Karma

_JP
Contributor

That particular error is referring to a hiccup during the execution of the search with the search peers - aka the Splunk Indexers - that were involved in your query.  

Here is a diagram of a simple Splunk enterprise deployment - you were initiating your query on a Search Head, and that query is shared out to the Indexer(s) that make up your deployment.  It sounds like one of the Indexers had an issue:

splunk_deploy.jpg

To find more info on what your issue is, you can open your search results, and click on the Inspect Job option under the Job menu on the result page:

 

splunk_job_inspect.png

 

And then open the search.log from the Job Inspector page that pops up:

splunk_search_log.png

 

Within that log file that opens you can find more details on what happened during your search to trigger the warning message "Search results might be incomplete" that you saw.

If you have more info on any of the error/warning logs in that file we could help you figure out what could be causing your issue.

 
 

 

 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...