Getting Data In

How to edit my configurations to fetch the client logs from VM to Splunk Enterprise?

gautami433806
New Member

i have configured Splunk Enterprise in my local and universal forwarder in my VM.
now i need to fetch the tomcat logs from VM to my local splunk

i have configured the Splunk inputs.conf as below:

[default]
host = PC316522

[tcp://:9997]
connection_host=dns

and serverclass.conf as below:

[serverClass:Universal Forwarders:app:sendtoindexer]
restartSplunkWeb = 0
restartSplunkd = 0
stateOnClient = enabled

[serverClass:Universal Forwarders:app:Splunk_TA_windows]
restartSplunkWeb = 0
restartSplunkd = 0
stateOnClient = enabled

[serverClass:Universal Forwarders]
whitelist.0 = 10.223.68.78

and in my VM, inputs.conf:

[default]
host = CTSC00637603501

[monitor://D:\TOMCAT8\apache-tomcat-8.0.26-windows-x64\apache-tomcat-8.0.26\logs]
disabled=false

and outputs.conf as below:

[tcpout]
defaultGroup = default-autolb-group

[tcpout:default-autolb-group]
server = 10.226.217.238:8089

[tcpout-server://10.226.217.238:8089]
disabled=false
 and deploymentclient.conf as below:

[deployment-client]
phoneHomeIntervalInSecs = 1800

[target-broker:deploymentServer]
targetUri = 10.226.217.238:8089
phoneHomeIntervalInSecs = 1800

But while searching for logs in Splunk, am not getting the client tomcat logs, could you please help me on this.

Thanks,
Gautami. K

0 Karma

gjanders
SplunkTrust
SplunkTrust

Perhaps you want to use splunktcp:// on your indexer ?

As per the inputs.conf documentation

The following configuration listens on TCP port 9996 for
Splunk cooked event data from ANY splunk forwarder.
The host of the data is set to the host name of the remote server ONLY IF the
remote data has no host set, or if it is set to "localhost".

[splunktcp://:9997]

Note that I've changed the port to 9997. The above will setup the inputs.conf to listen for Splunk universal forwarder data which is likely what you want to do...

Then refer to outputs.conf.example within the outputs.conf documentation...(your outputs needs to be changed as well)

0 Karma

alemarzu
Motivator

Hi Gautami, does your UF have read access on that directory ?

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...