Getting Data In

Using different stanza defined in props.conf with same index

yuwtennis
Communicator

Hi!

I would like to ask question if something like below is possible.

I already have a

index A with sourcetype A (sourcetype A defined in props.conf)

However, I want to use the same indexA with different purpose
and want to define sourcetype B in props.conf.

So ,

in search A , I want to use index A with sourcetype A

but in search B , I want to use index A with sourcetype B.

Is this possible?

Thnaks,
Yu

Tags (2)
0 Karma
1 Solution

gfuente
Motivator

Hello,

Of course it is. You only need to define the same index in your inputs. Like:

[sourcetypeA]
 index = A

[sourcetypeB]
 index = A

And then in your query filter as you need:

index= A sourcetype=sourcetypeB

Regards

View solution in original post

gfuente
Motivator

Hello,

Of course it is. You only need to define the same index in your inputs. Like:

[sourcetypeA]
 index = A

[sourcetypeB]
 index = A

And then in your query filter as you need:

index= A sourcetype=sourcetypeB

Regards

yuwtennis
Communicator

Hi gfuente.

I just want to confirm that is this to be defined in props.conf?

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...