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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...