Getting Data In

How to edit a props.conf for an aribitrary source?

minkyuk
Explorer

Where do I go & how should I do it?

I know what to change,

[$sourcetype]
MAX_EVENT = 100000

I would appreciate your help,

A newcomer

Tags (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

The file to edit is SPLUNK_HOME/etc/system/local/props.conf. If it doesn't exist, create one. DO NOT edit default/props.conf! Use the text editor of your choice to do the editing.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

The file to edit is SPLUNK_HOME/etc/system/local/props.conf. If it doesn't exist, create one. DO NOT edit default/props.conf! Use the text editor of your choice to do the editing.

---
If this reply helps you, Karma would be appreciated.

minkyuk
Explorer

Do I put the line in a search head?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Put it on the indexer(s). Remember to restart Splunk after making the change.

---
If this reply helps you, Karma would be appreciated.
0 Karma

minkyuk
Explorer

Sorry, but do you mean at time of "Adding Data?"

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Whenever you modify a .conf file outside the Splunk GUI, Splunk must be restarted to incorporate the change.

---
If this reply helps you, Karma would be appreciated.
0 Karma

minkyuk
Explorer

like, index setting section?

0 Karma

solarboyz1
Builder

props.conf can be found in a few places:

$SPLUNK_HOME/etc/system/default - Default props (do not modify)
$SPLUNK_HOME/etc/system/local - Should be used for adjustments that are only needed on THIS system
$SPLUNK_HOME/etc/apps/{APPNAME}/default - An apps default props.conf (do not modify)
$SPLUNK_HOME/etc/apps/{APPNAME}/local - Customization of an apps props.conf.

If there isn't a props.conf under the local directory, a new file should be created.

We use the following guidelines:

  1. If the modification is to props.conf implemented by an App, it should be in that apps local/props.conf
  2. If the modification is a standalone change, we put it in one of the Apps created for our environment that are then pushed using the deployment server

If you are looking for where the props.conf for a specific sourcetype are defined you can use the btool command:

For all props:
$SPLUNK_HOME/bin/splunk cmd btool --debug props list

For the props to a specific sourcetype:
$SPLUNK_HOME/bin/splunk cmd btool --debug props list $sourcetype

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!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...