Getting Data In

Universal Forwarder not communicating to server

ghostlab
Loves-to-Learn Lots

I have an Alpine image with splunk forwarder installed in it. I am trying to monitor one log file from with in the container and log it to the splunk server.

Step 1: Base image with Alpine and unzipped splunkforwarder.tgz file

Step 2: Using this base image to dockerize my node application.

               RUN ../../../opt/splunk/bin/splunk start --accept-license --answer-yes --seed-passwd password

               RUN ../../../opt/splunk/bin/splunk add forward-server server-ip:9997 -auth admin:username

               RUN ../../../opt/splunk/bin/splunk add monitor ./logs -sourcetype logs

               RUN ../../../opt/splunk/bin/splunk restart

               RUN ../../../opt/splunk/bin/splunk enable boot-start #dont know if its needed

I am still not receiving any logs in the splunk server. Is there anything I need to do for the spluk forwarder to communicate with splunk-server from with in the container.

Thank you.

Labels (1)
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...