Getting Data In

Logs are not forwarded to splunk from splunk forwarder

muqeeiz
Loves-to-Learn

Hi, 

my logs do not appear in the index and in splunkd.log i get the following error

 

09-21-2023 16:36:40.693 +0200 INFO  AutoLoadBalancedConnectionStrategy [7698 TcpOutEloop] - Connected to idx=xx.xx.xx.xx:16313, pset=0, reuse=0. using ACK.
09-21-2023 16:36:48.003 +0200 INFO  TailReader [7705 tailreader0] - Batch input finished reading file='/opt/splunkforwarder/var/spool/splunk/tracker.log'
09-21-2023 16:37:10.613 +0200 INFO  AutoLoadBalancedConnectionStrategy [7698 TcpOutEloop] - Connected to idx=xx.xx.xx.xx:16313, pset=0, reuse=0. using ACK.
09-21-2023 16:37:18.002 +0200 INFO  TailReader [7705 tailreader0] - Batch input finished reading file='/opt/splunkforwarder/var/spool/splunk/tracker.log'

 

 

my inputs.conf has only the following:

 

[default]
host = myhostname
index = vcenter-index-name
[monitor:///var/log/remotelogs/vcenter-rep/analytics.log]
sourcetype =  "vcenter"
queueSize = 50MB
crcSalt = <SOURCE>
disabled = false

 

I would mention that I have the same configuration on a different server and logs end out in splunk without a problem and this error does not appear on the other servers:

 

09-21-2023 16:37:18.002 +0200 INFO  TailReader [7705 tailreader0] - Batch input finished reading file='/opt/splunkforwarder/var/spool/splunk/tracker.log'

 

Labels (4)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @muqeeiz,

sorry, but I don't see any error in the messages you shared!

anyway, check the permissions on the files to read.

Ciao.

Giuseppe

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...