Knowledge Management

Is it possible to have action.summary_index._name have multiple values?

haleyykidd
Engager

Is it possible to have action.summary_index._name have multiple values? Ie. can I have a saved search write to more than one summary index?

Ex. action.summary_index._name = my_alerts,general_summary

Labels (1)
0 Karma
1 Solution

yeahnah
Motivator

Hi @haleyykidd 

I'd have to ask why would you want to duplicate data into two indexes?

I doubt this can be done via Splunk configuration, but no harm in trying (if you have not already)...

https://docs.splunk.com/Documentation/Splunk/latest/Admin/Savedsearchesconf

yeahnah_0-1681937881671.png

A possible way is to use the collect command in your saved search instead.

https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Collect?ref=hk

For example...

 

... your search ...
| collect index=summary1
| collect index=summary2

 

Hope this helps

View solution in original post

0 Karma

yeahnah
Motivator

Hi @haleyykidd 

I'd have to ask why would you want to duplicate data into two indexes?

I doubt this can be done via Splunk configuration, but no harm in trying (if you have not already)...

https://docs.splunk.com/Documentation/Splunk/latest/Admin/Savedsearchesconf

yeahnah_0-1681937881671.png

A possible way is to use the collect command in your saved search instead.

https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Collect?ref=hk

For example...

 

... your search ...
| collect index=summary1
| collect index=summary2

 

Hope this helps

0 Karma

haleyykidd
Engager

Basically, we have two summary indices that we use for two different functions but for which the data the saved search is writing is relevant (to both).

We did try setting two indices as the target, and it was accepted syntactically but in practice did not work - the results ended up writing to neither index. So if anyone is running into this, know that if you set both indices you will effectively get the results written to neither index without any failures being thrown.

We are looking into the collect option now, but as backup would just have two separate saved searches.

0 Karma
Get Updates on the Splunk Community!

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...

Join Us at the Builder Bar at .conf24 – Empowering Innovation and Collaboration

What is the Builder Bar? The Builder Bar is more than just a place; it's a hub of creativity, collaboration, ...

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...