Getting Data In

system local folder vs forwarder local folder

splunkatl
Path Finder

In Heavyforwader if we go to SYSTEM directory we have Local and Default directories created by it self in which we have all the configuration files by default like( inputs.conf , output.conf , props.conf , transforms.conf , etc.,)

Now my question is why to enable SplunkForwarder for local directory and manually create all the configuration files (input.conf , output.conf, props.conf and transforms.conf ) ? and transfer the log data same as universal forwarder

why cant we forward the log data directly from system-->local directory to enterprise server...

plz correct me if there is any wrong.....

0 Karma
1 Solution

lguinn2
Legend

The directory structure for indexers, heavy forwarders and universal forwarders is the same. You can put configuration files in SPLUNK_HOME/etc/system/local or you can put them in an app SPLUNK_HOME/etc/apps/AppName/local.

You should only create or edit files in the local subdirectories. Never change the files in the default subdirectories.

For indexers, heavy forwarders and universal forwarders, the BEST PRACTICE is the same: put your configurations in an app directory SPLUNK_HOME/etc/apps/AppName/local not the system-level directories. This makes your configurations easier to manage. Many people use the "search" app directory for general configurations. Config files such as inputs.conf, outputs.conf, deploymentclient.conf, props.conf and transforms.conf should be placed in an app-level directory.

The only configurations that SHOULD go into the SPLUNK_HOME/etc/system/localdirectory are true system settings such as the host name setting (in server.conf) and port numbers (in web.conf and server.conf).

If you follow the best practice, then it is easy to copy the entire app from one system to another, and the systems will be configured the same.

View solution in original post

lguinn2
Legend

The directory structure for indexers, heavy forwarders and universal forwarders is the same. You can put configuration files in SPLUNK_HOME/etc/system/local or you can put them in an app SPLUNK_HOME/etc/apps/AppName/local.

You should only create or edit files in the local subdirectories. Never change the files in the default subdirectories.

For indexers, heavy forwarders and universal forwarders, the BEST PRACTICE is the same: put your configurations in an app directory SPLUNK_HOME/etc/apps/AppName/local not the system-level directories. This makes your configurations easier to manage. Many people use the "search" app directory for general configurations. Config files such as inputs.conf, outputs.conf, deploymentclient.conf, props.conf and transforms.conf should be placed in an app-level directory.

The only configurations that SHOULD go into the SPLUNK_HOME/etc/system/localdirectory are true system settings such as the host name setting (in server.conf) and port numbers (in web.conf and server.conf).

If you follow the best practice, then it is easy to copy the entire app from one system to another, and the systems will be configured the same.

Get Updates on the Splunk Community!

Splunk is Nurturing Tomorrow’s Cybersecurity Leaders Today

Meet Carol Wright. She leads the Splunk Academic Alliance program at Splunk. The Splunk Academic Alliance ...

Part 2: A Guide to Maximizing Splunk IT Service Intelligence

Welcome to the second segment of our guide. In Part 1, we covered the essentials of getting started with ITSI ...

Part 1: A Guide to Maximizing Splunk IT Service Intelligence

As modern IT environments continue to grow in complexity and speed, the ability to efficiently manage and ...