Getting Data In

sedcmd incoming data based on host or index

kritho
Explorer

Hi,
I have a SEDCMD simalar to

SEDCMD-remove-values = s/<Value>.+<\/Value>/removed-by-splunk/g  

which works fine, but i'd like to filter this to a spesific index, lets say "index!=dev"
is this possible?

brgs
Kristen

Tags (1)
0 Karma
1 Solution

yannK
Splunk Employee
Splunk Employee

Not really, the sedcmd applied to all data matching the stanza, and the stanza in props can only apply to : an exact sourcetype, or a source or a host.
There is not way to apply to a specific index.

You can try the host. example with props.conf

[host::*mydevhost*]
SEDCMD-remove-values = s/<Value>.+<\/Value>/removed-by-splunk/g 

View solution in original post

0 Karma

yannK
Splunk Employee
Splunk Employee

Not really, the sedcmd applied to all data matching the stanza, and the stanza in props can only apply to : an exact sourcetype, or a source or a host.
There is not way to apply to a specific index.

You can try the host. example with props.conf

[host::*mydevhost*]
SEDCMD-remove-values = s/<Value>.+<\/Value>/removed-by-splunk/g 
0 Karma
Get Updates on the Splunk Community!

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 ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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