Getting Data In

Troubleshooting: SplunkHecExporter in otelcol-contrib : How to change the source filed to take the file name

Bxannas
Observer

Configured the otelcol-contrib  agent.config.yaml file to send the data to splunk cloud. i'm getting the data but the source is coming as HEC Token name. 

receivers is configured to read different files. 

filelog/sys:
include: [ /var/log/messages, /var/log/auth, /var/log/mesg$$, /var/log/cron$$, /var/log/acpid$$ ]
start_at: beginning
include_file_path: true
include_file_name: false
 
Exporters: 
in the exporters didn't mention the source.
option 1 : By default Splunk is taking the HEC token name as it's value.
option 2 : I can give the value as log file path but for multiple files, it's not working . 
 
in splunk cloud, source is - HEC Token value 
                     log_file_path field is giving the log file path.  Is there a way i can configure the source to take the log file path.
 
Labels (1)
0 Karma
Get Updates on the Splunk Community!

Meet Duke Cyberwalker | A hero’s journey with Splunk

We like to say, the lightsaber is to Luke as Splunk is to Duke. Curious yet? Then read Eric Fusilero’s latest ...

The Future of Splunk Search is Here - See What’s New!

We’re excited to introduce two powerful new search features, now generally available for Splunk Cloud Platform ...

Splunk is Nurturing Tomorrow’s Cybersecurity Leaders Today

Meet Carol Wright. She leads the Splunk Academic Alliance program at Splunk. The Splunk Academic Alliance ...