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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...