<?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: Unable to ingest the syslog-data into splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-ingest-the-syslog-data-into-splunk/m-p/483220#M82777</link>
    <description>&lt;P&gt;Hi PaveIP, I hope there was an issue in logging splunk.com due to which I was unable to comment, by the way today I tried to check whether the telnet connection is happening between the splunk instance and syslog-ng , but it was not happening.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;root@syslog-ng:~# sudo ufw disable
Firewall stopped and disabled on system startup
root@syslog-ng:~# telnet 35.247.51.122 514
Trying 35.247.51.122...
^C
root@syslog-ng:~# 

root@splunk-demo:~# sudo ufw disable
Firewall stopped and disabled on system startup
root@splunk-demo:~# telnet 34.71.15.71 514
Trying 34.71.15.71...
^C
root@splunk-demo:~# 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;syslog-ng --syntax-only  -- Did not fetch any output. &lt;/P&gt;

&lt;P&gt;Kindly guide me how to fix this connection issue in google cloud instances, so it can communicate.&lt;BR /&gt;
thanks in advance. &lt;/P&gt;</description>
    <pubDate>Mon, 27 Apr 2020 17:13:44 GMT</pubDate>
    <dc:creator>Hemnaath</dc:creator>
    <dc:date>2020-04-27T17:13:44Z</dc:date>
    <item>
      <title>Unable to ingest the syslog-data into splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-ingest-the-syslog-data-into-splunk/m-p/483216#M82773</link>
      <description>&lt;P&gt;Hi All, I am trying to ingest the syslog data into splunk for test POC.  In-order to ingests the syslog data, I had followed the below steps&lt;/P&gt;

&lt;P&gt;1) created ubuntu 18.04 in Google cloud and opened the firewall port 514. &lt;/P&gt;

&lt;P&gt;2)  Install syslog-ng on Ubuntu.&lt;/P&gt;

&lt;P&gt;$ sudo apt-get install syslog-ng -y &lt;/P&gt;

&lt;P&gt;3) Verify installed version of syslog-ng&lt;/P&gt;

&lt;P&gt;root@syslog-ng:~# syslog-ng --version&lt;/P&gt;

&lt;P&gt;syslog-ng 3 (3.13.2)&lt;/P&gt;

&lt;P&gt;Config version: 3.13&lt;/P&gt;

&lt;P&gt;Installer-Version: 3.13.2&lt;/P&gt;

&lt;P&gt;4) Create a Network input (UDP) in the Splunk console.&lt;/P&gt;

&lt;P&gt;Splunk  Settings  Data inputs  UDP  Add New &lt;/P&gt;

&lt;P&gt;5)  Below details are configured in syslog-ng.conf.&lt;/P&gt;

&lt;P&gt;source auth_log { file ("/var/log/secure"); };&lt;BR /&gt;
destination  splunk-demo { network ("35.247.51.122" transport("udp")); };  --&amp;gt; Splunk-demo IP address &lt;BR /&gt;
log { source(auth_log); destination(s) &lt;/P&gt;

&lt;P&gt;6) Restart syslog-ng service to effect the changes&lt;BR /&gt;&lt;BR /&gt;
root@syslog-ng:/etc/syslog-ng# systemctl restart syslog-ng&lt;/P&gt;

&lt;P&gt;7)  Unable to see the syslog-ng data getting ingested into splunk-demo instance which is the indexer server&lt;BR /&gt;
index = syslog-data &lt;/P&gt;

&lt;P&gt;Details: &lt;BR /&gt;
Splunk Enterprise 8.0.2  Trial Version &lt;BR /&gt;
Syslog version --&amp;gt;  syslog-ng 3 (3.13.2)&lt;BR /&gt;
Splunk indexer IP address -- &amp;gt;  35.247.51.122&lt;BR /&gt;
Syslog server IP address --&amp;gt;  35.225.250.86&lt;BR /&gt;
Firewall Port --&amp;gt; 514 is opened for communication &lt;/P&gt;

&lt;P&gt;Kindly guide me how to troubleshoot this issue and where I can see the error details on why the data is not getting ingested.&lt;/P&gt;

&lt;P&gt;Thanks in advance. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:08:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-ingest-the-syslog-data-into-splunk/m-p/483216#M82773</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-09-30T05:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to ingest the syslog-data into splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-ingest-the-syslog-data-into-splunk/m-p/483217#M82774</link>
      <description>&lt;P&gt;Hello @Hemnaath ,&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;double check the communication is allowed. On the syslog server:&lt;/P&gt;

&lt;P&gt;nc -vzu 35.247.51.122 514&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;double check the syslog can read the secure log and send it. On the syslog server start tcpdump as follow and perform a login via ssh (on the same machine) to trigger a log event creation, you should see some packets sent towards the splunk server:&lt;/P&gt;

&lt;P&gt;tcpdump -pnns0 -i any port 514 and host 35.247.51.122&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;do the same on the splunk side:&lt;/P&gt;

&lt;P&gt;tcpdump -pnns0 -i any port 514 and host 35.225.250.86&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;double check that splunk can open this privileged port 514:&lt;/P&gt;

&lt;P&gt;netstat -anup | grep :514&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;if the data is send but you cannot see it, check that the data stored in the index that you can read&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Common pitfals: syslog cannot read the log, a communication isn't possible because of the firewall (host firewall, AWS secure groups) , splunk cannot open port, wrong index or non-default index, ....&lt;/P&gt;

&lt;P&gt;Let me know if it worked for you.&lt;/P&gt;

&lt;P&gt;P.S. I hope it is a test setup and not a productive environment, because this setup doesn't follow some known best practices.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2020 14:13:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-ingest-the-syslog-data-into-splunk/m-p/483217#M82774</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-04-26T14:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to ingest the syslog-data into splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-ingest-the-syslog-data-into-splunk/m-p/483218#M82775</link>
      <description>&lt;P&gt;Hi PaveIP, thanks for throwing some lights on this issue,  yes I am just trying to do for test POC in google cloud not a production. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;On the syslog server:
root@syslog-ng:/etc/syslog-ng# nc -vzu 35.247.51.122 514
Connection to 35.247.51.122 514 port [udp/syslog] succeeded!

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 262144 bytes
^C
0 packets captured
0 packets received by filter
0 packets dropped by kernel
root@syslog-ng:/etc/syslog-ng#

root@syslog-ng:/etc/syslog-ng# netstat -anup | grep :514
udp        0      0 10.128.15.216:50614     35.247.51.122:514       ESTABLISHED 1002/syslog-ng      
root@syslog-ng:/etc/syslog-ng# 

On splunk indexer instance: 
root@splunk-demo:~# tcpdump -pnns0 -i any port 514 and host 35.239.119.31
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 262144 bytes
^C
0 packets captured
0 packets received by filter
0 packets dropped by kernel
root@splunk-demo:~# 

root@splunk-demo:~# netstat -anup | grep :514
udp        0      0 0.0.0.0:514             0.0.0.0:*                           1889/splunkd 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Based on above mentioned point, I could get this outputs. I had made sure that firewall port 514 is opened and source IP range is set in such away it can be accessed directly, but still i could see that in Splunk indexer &amp;amp; syslog-ng instances, tcpdump are not getting any data.  I am not sure whether the syntax is correct or not, could you please guide me on the same. &lt;/P&gt;

&lt;P&gt;thanks in advance. &lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2020 17:31:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-ingest-the-syslog-data-into-splunk/m-p/483218#M82775</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-04-26T17:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to ingest the syslog-data into splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-ingest-the-syslog-data-into-splunk/m-p/483219#M82776</link>
      <description>&lt;P&gt;if tcpdump isn't showing any data when you creating an entry in /var/log/secure then syslog-ng isn't sending any too. No need to look at the splunk yet. The problem is on the syslog server side. Look in this direction first. Do you see a new entry in /var/log/secure if you login via SSH? What is the output of:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  syslog-ng --syntax-only
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 26 Apr 2020 20:30:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-ingest-the-syslog-data-into-splunk/m-p/483219#M82776</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-04-26T20:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to ingest the syslog-data into splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-ingest-the-syslog-data-into-splunk/m-p/483220#M82777</link>
      <description>&lt;P&gt;Hi PaveIP, I hope there was an issue in logging splunk.com due to which I was unable to comment, by the way today I tried to check whether the telnet connection is happening between the splunk instance and syslog-ng , but it was not happening.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;root@syslog-ng:~# sudo ufw disable
Firewall stopped and disabled on system startup
root@syslog-ng:~# telnet 35.247.51.122 514
Trying 35.247.51.122...
^C
root@syslog-ng:~# 

root@splunk-demo:~# sudo ufw disable
Firewall stopped and disabled on system startup
root@splunk-demo:~# telnet 34.71.15.71 514
Trying 34.71.15.71...
^C
root@splunk-demo:~# 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;syslog-ng --syntax-only  -- Did not fetch any output. &lt;/P&gt;

&lt;P&gt;Kindly guide me how to fix this connection issue in google cloud instances, so it can communicate.&lt;BR /&gt;
thanks in advance. &lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 17:13:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-ingest-the-syslog-data-into-splunk/m-p/483220#M82777</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-04-27T17:13:44Z</dc:date>
    </item>
  </channel>
</rss>

