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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...