Data Collection Tier (How to get the data)

In the section I'll try do document what I learn about Splunk during the time I work with it

Get the data

By using Agent and depending on the Splunk Instance (Splunk Enterprise and Splunk Cloud Platform):

Universal Forwarder vs Heavy Forwarder This will explain what is the difference and when to use

Little detail about Splunk UF

Configuration File Precedence

You should know the configuration file structure and its core file (https://blog.soclib.net/splunk-configuration-file-precedence/ you can read more about it)

The configuration file precedence priority: local/system configuration -> app configuration -> default configuration:

1. System local directory β€” highest priority 2. App local directories 3. App default directories 4. System default directory β€” lowest priority

Because of this file precedence so the Splunk Documentation suggests that you shouldn't mess with the default configuration file -> because when you make changes to files that are under /system/local which has the highest priority, it will 100% make changes to the UF.

How to get the right data

If you using Splunk Universal Forwarder then you will be at this file path %SPLUNK_HOME%/etc/local/system/inputs.conf (%SPLUNK_HOME% is your Splunk install directory)-> which will store the configuration of input (things or logs you want to collect, whether it is a file or a stream of data)

The syntax is very simple you can take a look at the Splunk documentation, you should read it carefully.

The [default] is the global configuration for all inputs in this file, so if you specify index = <your desire index> then all the inputs will go that index. You can specify each input to have a different index to forwarder to.

The reference configuration file: https://github.com/mdecrevoisier/Splunk-input-windows-baseline/blob/main/splunk-windows-input/win_input.conf

Last updated

Was this helpful?