Splunk Search

apply apache field extractions to nonstandard sourcetype

zhatsispgx
Path Finder

Hello,

I have some apache access logs coming in that I'd like to label sourcetype="aem:access" instead of sourcetype=access_combined. How do I apply the sourcetype=access_combined default extractions to sourcetype="aem:access" ?

Thanks!

0 Karma

bangalorep
Communicator

You could go to props.conf and copy the settings of access combined to your sourcetype.

Here's the documentation on props.conf
https://docs.splunk.com/Documentation/Splunk/7.2.3/Admin/Propsconf

0 Karma

pruthvikrishnap
Contributor

From UI:
You will find Sourcetype Renaming option in Settings --> Fields menu path. Select the Destination App and provide the name of current sourcetype, _newname in your case, and the new sourcetype as newname and click Save.

From CLI:
You can use rename field in props.conf and change the source-type.

0 Karma

somesoni2
Revered Legend

You'd need to copy the field extractions from access_combined sourcetype to yoru custom aem:access sourcetype.

0 Karma

zhatsispgx
Path Finder

where are those field extractions located on my search head?

0 Karma

somesoni2
Revered Legend

This is an in-built sourcetype, so you'd find it in $SPLUNK_HOME/etc/system/default/props.conf. When you're going to create your custom sourcetype, place your props.conf on $SPLUNK_HOME/etc/apps under some app. Do not modify $SPLUNK_HOME/etc/system/default/props.conf.

0 Karma

zhatsispgx
Path Finder

if I add to $SPLUNK_HOME/etc/system/local/props.conf will that be global so all apps can use those extractions?

0 Karma

ddrillic
Ultra Champion

Right, but $SPLUNK_HOME/etc/apps/search/local/props.conf is probably a better place for global app settings.

Please keep in mind that access_combined in $SPLUNK_HOME/etc/system/default/props.conf refers to $SPLUNK_HOME/etc/system/default/transforms.conf as well.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...