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.
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...