Getting Data In

Can a sourcetype be aliased, meaning, can it inherit extractions from another sourcetype?

paimonsoror
Builder

Wasn't able to find a solid answer on this one, but I am using Splunk 6.x, and was wondering if I could have a sourcetype, that essentially "inherits" another sourcetype. For example

[monitor:///var/log/httpd/access.log]
index = app_cp
sourcetype = cp:httpd:access
#souretype = access_combined
ignoreOlderThan = 1d

Ideally I would like the team to be able to leverage a sourcetype called cp:httpd:access so that they only get the access logs that pertain to their particular logs files, but i also want it to inherit the extractions defined by access_combined.

So essentially, can cp:httpd:access inherit from access_combined?

1 Solution

woodcock
Esteemed Legend

Yes; you can rename a sourcetype:

https://docs.splunk.com/Documentation/Splunk/6.5.1/Data/Renamesourcetypes

This is a search-time configuration and can have app-scope. Also, within the effected scope, the old/original/REAL sourcetype name can be accessed under the field name _sourcetype.

View solution in original post

woodcock
Esteemed Legend

Yes; you can rename a sourcetype:

https://docs.splunk.com/Documentation/Splunk/6.5.1/Data/Renamesourcetypes

This is a search-time configuration and can have app-scope. Also, within the effected scope, the old/original/REAL sourcetype name can be accessed under the field name _sourcetype.

paimonsoror
Builder

YOU ROCK!!

0 Karma
Get Updates on the Splunk Community!

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...