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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...