<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to send the local file using splunk forwarder docker image? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-send-the-local-file-using-splunk-forwarder-docker-image/m-p/490978#M83910</link>
    <description>&lt;P&gt;run &lt;CODE&gt;docker exec&lt;/CODE&gt; and then use the &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/MonitorfilesanddirectoriesusingtheCLI"&gt;Splunk CLI&lt;/A&gt; to add the inputs&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk add monitor /var/log/logfile.txt -index newindex
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 12 Mar 2020 02:01:41 GMT</pubDate>
    <dc:creator>xavierashe</dc:creator>
    <dc:date>2020-03-12T02:01:41Z</dc:date>
    <item>
      <title>how to send the local file using splunk forwarder docker image?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-send-the-local-file-using-splunk-forwarder-docker-image/m-p/490977#M83909</link>
      <description>&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
    splunkuniversalforwarder:&lt;BR /&gt;
        image: splunk/universalforwarder&lt;BR /&gt;
        environment:&lt;BR /&gt;
            - SPLUNK_START_ARGS=--accept-license&lt;BR /&gt;
            - SPLUNK_FORWARD_SERVER=ops-splunkhead02.dop.sfdc.net:9997&lt;BR /&gt;
            - SPLUNK_USER=root&lt;BR /&gt;
            - SPLUNK_PASSWORD=xxxx&lt;BR /&gt;
        ports:&lt;BR /&gt;
            - 9997:9997&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I store the log flie in &lt;CODE&gt;/var/logs/serviceLog.log&lt;/CODE&gt; (Not in the container but in the local machine)&lt;/P&gt;

&lt;P&gt;I don't see the parameter to pass the file path;;; Seems like the splunk forwarder is running in the background and I just realized I never pass the log source variable to the container!&lt;/P&gt;

&lt;P&gt;Does anyone perhaps have an idea?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 00:06:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-send-the-local-file-using-splunk-forwarder-docker-image/m-p/490977#M83909</guid>
      <dc:creator>johnbaekkkk</dc:creator>
      <dc:date>2020-03-12T00:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to send the local file using splunk forwarder docker image?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-send-the-local-file-using-splunk-forwarder-docker-image/m-p/490978#M83910</link>
      <description>&lt;P&gt;run &lt;CODE&gt;docker exec&lt;/CODE&gt; and then use the &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/MonitorfilesanddirectoriesusingtheCLI"&gt;Splunk CLI&lt;/A&gt; to add the inputs&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk add monitor /var/log/logfile.txt -index newindex
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Mar 2020 02:01:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-send-the-local-file-using-splunk-forwarder-docker-image/m-p/490978#M83910</guid>
      <dc:creator>xavierashe</dc:creator>
      <dc:date>2020-03-12T02:01:41Z</dc:date>
    </item>
  </channel>
</rss>

