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.
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.
The answer may have something to do with the omitted parts of your search. Can you share a little bit more?
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 !!