Splunk Search

table at first has results but in the end has 0 event

angelia_zhong
Engager

hi everybody,
I met very strange stiuation when I do the search. This is the code:
...
|transaction id mvlist=t startswith=eval(tri="1") endswith=eval(tri="4")
|eval id =mvindex (id, -1)
...
|table id duration realduration lat1 lat2 long1 long2
|outputcsv result.csv

At first i can see the results in the table. Until the finalizing jobs I can see the results too. The finalizing jobs takes a long time. It took about 2 Hours during the search. But in the End there is 0 Event. It said: "Found no results to write to file 'result.csv'." No Warnings took place.

I have no ideal why this will happen. This is very strange. Who knows, how to fix the problem. Thank you very much.

0 Karma

woodcock
Esteemed Legend

This is somewhat normal if you are piping to many "rolling up"-type commands (e.g. stats) because Splunk is designed to give you preliminary (NOT PARTIAL) results along the way while your search is processing. Normally this is very useful but in some cases like yours, it can be misleading and confusing. Such complicated searches also may take a while to finalize so that is normal, too. You should never forget that any search may show preliminary results that are later properly vacated using the plenary results in the finalization stage. If you believe that you should have results, then you almost certainly have a mistake in your search string. To find the mistake, throw away each post-pipe clause, one by one, starting from the right side and make sure at each stage that the preliminary stages' results look the way they should. As the others have said, we really cannot tell more without your exact search and some real sample data.

richgalloway
SplunkTrust
SplunkTrust

The answer may have something to do with the omitted parts of your search. Can you share a little bit more?

---
If this reply helps you, Karma would be appreciated.
0 Karma

immortalraghava
Path Finder

I think this is similar to this question ... http://answers.splunk.com/answers/238267/search-with-result-shows-no-results-found-error-af.html

Hope someone answers !!

Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...