Splunk Search

Why collect command not working when the command is makeresults in search head?

splunker-2021
Loves-to-Learn Everything

When I run | makeresults command then collect it to summary index there is no result. I am testing this to Search Head in Cluster environment.

sample code:

| makeresults
| eval a = "1"
| collect index = "sample_index"

Tags (1)
0 Karma

TrangCIC81
Communicator

When you run the makeresults command, it generates synthetic events with a timestamp of the current time by default. However, when you collect these events to a summary index, they may not be immediately visible in the summary index search results because there may be a delay before they are indexed and available for search.
If your summary index is configured correctly and the data is being collected to it, but you still cannot see the results of your makeresults search, you may need to wait a little longer for the events to be indexed before they become available in the summary index search results.

0 Karma

splunker-2021
Loves-to-Learn Everything
we have waited for 3 days but still no result 😞
0 Karma

splunker-2021
Loves-to-Learn Everything

Hi, I have search it using index="sample_index" but no result 😞

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@splunker-2021 - Are you getting any error/warning messages when you run the collect command?

0 Karma

splunker-2021
Loves-to-Learn Everything

there is no error message, we just search the index="sample_index" if there is data but it is showing no result.

0 Karma

splunker-2021
Loves-to-Learn Everything

when we try this command, index="test_1" | collect index="sample_index" it is working, but when trying the command | makeresults or | inputlookup command, it is not collecting to the index

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@splunker-2021 - That should not be the case as I have used collect command with makeresults command many times before and it works fine. Not sure what's wrong in your case.

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@splunker-2021 - You query should work, considering below:

  • You have the index "sample_index" created
    • on Indexer given you are forwarding the search head data to Indexers
    • on Search Head given you are not forwarding the search head data to Indexers

 

Try searching the new event with below search to see if you are getting the results or not:

index=sample_index

 

I hope this helps!! Kindly upvote if it does!!!

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

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...