Splunk Search

Multiple sourcetypes per source

Samslara
Explorer

Hi,
I have a novice question, but is it possible to have more than one sourcetype for a given source?

0 Karma

hjwang
Contributor

Sure.

In props.conf
[source::<your source name>]
TRANSFORMS-XXX = AAA
TRANSFORMS-YYY = BBB
...

In transforms.conf
[AAA]
REGEX = <Extract a trait in your log like host IP or something else>
DEST_KEY = MetaData:Sourcetype
FORMAT = sourcetype::<your sourcetype name>
[BBB]
...
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 ...