<?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: Why am I encountering an Error on forwarding nginx container logs to Splunk forwarder? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-encountering-an-Error-on-forwarding-nginx-container/m-p/310766#M58395</link>
    <description>&lt;P&gt;514, that is the place which I'm trying to forward logs. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;ports:&lt;BR /&gt;
       - "514:1514/udp"&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Apr 2018 17:24:47 GMT</pubDate>
    <dc:creator>eygtmbot</dc:creator>
    <dc:date>2018-04-03T17:24:47Z</dc:date>
    <item>
      <title>Why am I encountering an Error on forwarding nginx container logs to Splunk forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-encountering-an-Error-on-forwarding-nginx-container/m-p/310764#M58393</link>
      <description>&lt;P&gt;&lt;A href="https://www.splunk.com/blog/2015/08/24/collecting-docker-logs-and-stats-with-splunk.html"&gt;https://www.splunk.com/blog/2015/08/24/collecting-docker-logs-and-stats-with-splunk.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;With reference to this documentation, I'm trying to forward my container logs to Splunk forwarder listening on 514 port. &lt;/P&gt;

&lt;P&gt;Forwarder Config&lt;BR /&gt;
    version: '2'&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;volumes:
  opt-splunk-etc:
  opt-splunk-var:

services:
  splunkuniversalforwarder:

    hostname: splunkuniversalforwarder
    image: splunk/universalforwarder:7.0.0
    environment:
      SPLUNK_START_ARGS: --accept-license --answer-yes
      SPLUNK_FORWARD_SERVER: "hostname:9997"

    volumes:
      - opt-splunk-etc:/opt/splunk/etc
      - opt-splunk-var:/opt/splunk/var
    ports:
      - "514:1514/udp"
      - "8000:8000"
      - "9997:9997"
      - "8088:8088"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;after starting the container I'm running &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;docker exec -it splunk_forwarder_1 entrypoint.sh splunk add udp 1514 -sourcetype syslog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but its giving a faliur message says&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  root@splunk-forwarder:/home/splunk/docker-forwarer# docker exec -it dockerforwarer_splunkuniversalforwarder_1 entrypoint.sh splunk add udp 1514 -sourcetype syslog
    Splunk username: admin
    Password:
    Failed to create. Configuration for port 1514 already exists.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk forwarder listerning on 514 syslog port &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;root@splunk-forwarder:/home/splunk/docker-forwarer# netstat -lnp | grep 514
udp6       0      0 :::514                  :::*                                87192/docker-proxy
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is the NGINX server I'm trying to forward logs from &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;nginx:
  image: nginx
  ports:
    - 80:80
    - 443:443
  volumes_from:
    - vdata
  restart: always
  log_driver: syslog
  log_opt:
    syslog-tag: nginxproxy_nginx
    syslog-address: udp://127.0.0.1:514
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I'm starting the NGINX container its stuk on conneting to the syslog-address: udp://127.0.0.1:514&lt;BR /&gt;
can you please let us know what I'm doing worng ? &lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 01:03:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-encountering-an-Error-on-forwarding-nginx-container/m-p/310764#M58393</guid>
      <dc:creator>eygtmbot</dc:creator>
      <dc:date>2018-04-03T01:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I encountering an Error on forwarding nginx container logs to Splunk forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-encountering-an-Error-on-forwarding-nginx-container/m-p/310765#M58394</link>
      <description>&lt;P&gt;its 1514 or 514?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 03:54:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-encountering-an-Error-on-forwarding-nginx-container/m-p/310765#M58394</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-04-03T03:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I encountering an Error on forwarding nginx container logs to Splunk forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-encountering-an-Error-on-forwarding-nginx-container/m-p/310766#M58395</link>
      <description>&lt;P&gt;514, that is the place which I'm trying to forward logs. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;ports:&lt;BR /&gt;
       - "514:1514/udp"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 17:24:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-encountering-an-Error-on-forwarding-nginx-container/m-p/310766#M58395</guid>
      <dc:creator>eygtmbot</dc:creator>
      <dc:date>2018-04-03T17:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I encountering an Error on forwarding nginx container logs to Splunk forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-encountering-an-Error-on-forwarding-nginx-container/m-p/310767#M58396</link>
      <description>&lt;P&gt;Any issue on the udp6 ???&lt;BR /&gt;
&lt;CODE&gt;# netstat -lnp | grep 514&lt;BR /&gt;
 udp6       0      0 :::514                  :::*                                87192/docker-proxy&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 17:25:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-encountering-an-Error-on-forwarding-nginx-container/m-p/310767#M58396</guid>
      <dc:creator>eygtmbot</dc:creator>
      <dc:date>2018-04-03T17:25:56Z</dc:date>
    </item>
  </channel>
</rss>

