Module 5: Getting Data into Splunk Enterprise/Cloud Flashcards

1
Q

What is a Splunk intermediate forwarder?

A
  • Last hop on the on-prem network
  • Need to UF credentials from Splunk Cloud
  • Gather data and parse if necessary
  • Send data across the internet to Splunk Cloud for indexing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a Splunk Universal Forwarder?

A
Specifically designed to run on production servers
o	Lightweight
o	Minimal CPU and mem usages
o	No web interface
A separate install binary
Use UF for defining Splunk inputs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a Splunk Heavy Forwarder?

A

Splunk Enterprise binary configured as a forwarder (outputs.conf)
o Requires forwarder license
o Does everything except indexing
o Creates more network traffic than UF
Accepts all input types and can parse raw data
Can be used as IF for other UF
o As a mid-tier component
o Aggregate data from UFs, parse, and route to Splunk cloud
o Can be a single point of failure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the forwarder best practices?

A

• UFs are the preferred method of getting data in to Splunk cloud
• Use a HF only when necessary
o Parsing data before going into cloud
o When apps are not allowed on Splunk cloud
• Recommend ratio of forwarders to indexers is 2 UFs to 1 indexer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are sourcetypes?

A
  • Splunk uses source types to categorise data
  • Can be used while searching to filter data
  • Defined in props.conf on the indexer or heavy-forwarder
  • Automatically assigned by Splunk or explicitly assigned by the data administrator.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the three phases of indexing?

A

Input phase
Parsing phase
Indexing phase

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the input phase?

A

o data is read from data sources such as files and network
o Metadata such as host, source, and sourcetype are applied
o Most configuration is in inputs.conf (some in props.conf)
o Operates on the entire data stream

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the parsing phase?

A
o	Data is broken in to events
o	Timestamp extracted.
o	Most configuration in props.cnf (some in transforms.conf)
o	Operates on individual events
o	Event level transformations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the indexing phase?

A

o Segment events that then can be searched
o Build index
o Licence meter runs before the data is writing to disk
o Raw data and index files are written to disk (in buckets)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The Indexing pipeline can be viewed from the ___.

A

monitoring console (monitoring console > indexing > performance > indexing performance:instance)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the parsing pipeline?

A

Responsible for character encoding and line breaking

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the merging pipeline?

A

Responsible for timestamp extraction and merges multi-line events

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the typing pipeline?

A

Responsible for punctuations extraction and regex replacement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the indexing pipeline?

A

Responsible for indexing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are three use cases for using a HF?

A
  • Parse and route data before sending to indexers
  • Firewall rule simplification, can allow just the heavy forwarder through the firewall as opposed to all UF
  • Use addons such as DBconnect and HTTP event collector.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How do you install a UF in Unix?

A
  • Download the tar ball and unzip in desired location
  • Install UF in a separate file system (example /opt/splunkforwarder)
  • The command ‘Splunk’ is located in $SPLUNK_HOME/bin that can be used to start/stop UF
  • Default admin password is changeme
  • Employ config management tools such as ansible or puppet
17
Q

How do you install a UF in Windows?

A
  • Can use MSI wizard or msiexec.exe CLI
  • Can be installed as a domain admin
  • Use msiexec.exe with /quite an AGREETOLICENSE=yes for complete silent install
  • Can enable windows event logs and perfmon ingestion (recommended)
  • Runs as a windows service
18
Q

What must be done to set up forwarding?

A
  • Set up receiving on the indexers. Primary config file is inputs.conf
  • Set up forwarding on the UF. Primary config file is outputs.conf
19
Q

How do you set up receiving?

A
  • Must be done before forwarders can send data
  • Using gui – Settings > forwarding and receiving > configure receiving
  • CLI – Splunk enable listen
  • Default port is 9997.
20
Q

How do you set up forwarding?

A
  • Use CLI or outputs.conf to set up forwarding
  • CLI - ./Splunk add forward-server
  • Edit outputs.conf
21
Q

What are the four ways to add inputs?

A

• Using deployment server to distribute inputs.conf
• Using Splunk CLI]
o $SPLUNK_HOME/bin/slunk add monitor [location & filename]
• Editing inputs.conf manually
• Using Splunk add-ons

22
Q

What are some additional forwarder configurations?

A
Forward data selectively to multiple indexers
Load balancing
Compression
SSL
Buffering (queueing)
Index acknowledgement
23
Q

How do you configure forwarding data selectively to multiple indexers?

A
  • Define two tcpout destinations in outputs.conf

* Use _TCP_ROUTING in inputs.conf to selectively send data

24
Q

How do you configure compression?

A
  • Enable compression on both indexer and forwarder
  • Reduces network traffic, but slightly increase CPU usage
  • Compressed=true on the forwarder outputs.conf and indexer inputs.comf
25
Q

How do you configure SSL?

A
  • Enabling SSL automatically enables compression
  • Can increase CPU usage
  • Specify cert files in the conf files
26
Q

How do you configure buffering?

A
  • Configure maxQueueSize in outputs.conf to enable queuing
  • Default is 500kb when useACK is false. 7mb when useACK is true
  • When load balancing is enabled, queueing occurs only when all indexers are not available
27
Q

How do you configure index acknowledgement?

A
  • Ensures data is received by indexers
  • Protects against data loss
  • Forwarders resend data not acknowledged by indexer
  • A wait queue is created with 3x size of maxQueuSize
  • Enabled by using useACK = true in outputs.conf
28
Q

How do you configure load balancing accross multiple indexers?

A
  • Specify a list of indexers in the server list in outputs.conf
  • Every 30 seconds, forwarder will randomly select an available indexer from the list
  • Frequency can be updated using autoLBFrequency setting (not recommended)
29
Q

Name the troubleshooting steps when troubleshooting a forwarder?

A
Use SPL
•	index=_internal host=
Check if forwarder is running
•	$SPLUNK_HOME/bin/Splunk status
•	Ps -ef | grep Splunk
Check forwarder configuration
•	$SPLUNK_HOME/bin/Splunk list forward-server
Check indexer configuration
•	$SPLUNK_HOME/bin/Splunk display listen
Check forwarder splunkd log
•	$SPLUNK_HOME/var/log/Splunk/splunkd.log