Knowledge Management

When summary indexing job completed, the result is not written to defined summary index. It is written to index "main"

daniel_splunk
Splunk Employee
Splunk Employee

When summary index job run completed, the results did't send to index=summary as we setup in schedule search job. But Splunk send summary results to index "main". It had been working before and I didn't change anything.

Tags (1)
0 Karma

daniel_splunk
Splunk Employee
Splunk Employee

When splunk run scheduled job which generate result to summary index, once the result is generated, it will write the result into a temporary directory /opt/splunk/var/spool/splunk with a file suffix stash_new.

(For example, RMD541b14054534417ff_2113273468.stash_new)

Splunk by default will monitor this directory with this stanza.

[batch:///home/daniel/splunk-idx/var/spool/splunk/...stash_new]
sourcetype = stash_new

From your description, as you didn't change the scheduled job, one possibility is the sourcetype = stash_new in props.conf is altered by other stanza.

You can check it by using this btool command.
splunk cmd btool --debug props list stash_new

If the returned result have some configuration from local directory, you may need to check whether that configuration is really for stash_new or not.

One example that may break the summary indexing logic is that you accidentally write the followng into local/props.conf without any stanza. That configure will applied to [stash_new] as well.

cat etc/system/local/props.conf
INDEXED_EXTRACTIONS = CSV 
## As above configure is not under any stanza, it will apply to all other stanza. Don't configure like this.
0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...