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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...