Splunk Enterprise

is there a way to check if makeresults stored the events in index or not ?

jayjoshi64
Engager

I am searching like this in Splunk:

  | makeresults count=3 | eval _raw="demo event" | collect index=main sourcetype="sample"

It generates the events and also stores these 3 events in the index.

and then I searched this:

| makeresults count=3 | eval _raw="demo event" | collect index="randomindex" sourcetype="sample"

Here, "randomIndex" is not available in the Splunk instance, so it will not store the events, but it will show all 3 events anyway when the above search is fired. but still not stored anywhere.

I am trying same to do using REST API to search "makeresults" multiple times and store in the given index but there is no way to check whether the events has been stored successfully or not.

Is there a way to check whether the makeresults stored the event successfully or not.? using job properties or anything.?

Tags (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi
you have to create Index before use collect command (see https://docs.splunk.com/Documentation/Splunk/7.0.1/SearchReference/Collect ) so you're sure to find events in that index.

Bye.
Giuseppe

jayjoshi64
Engager

I have checked whether index is available in the Splunk Instance by checking if index's stanza is available in indexes.conf or not.

if there is error message in the response. create the Index by adding the stanza in the indexes.conf

to check and add stanza: check stanza by REST API

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...