<?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 syslog data on udp port is showing as zero bytes in Splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/syslog-data-on-udp-port-is-showing-as-zero-bytes-in-Splunk/m-p/395772#M70572</link>
    <description>&lt;P&gt;Hi Splunk experts, &lt;/P&gt;

&lt;P&gt;I ran into a strange situation in Splunk wherein udp connections but data size is zero.&lt;/P&gt;

&lt;P&gt;Just to give you a background of what i am trying to do and how.&lt;/P&gt;

&lt;P&gt;I am using Splunk in our organisation and currently working on creating a solution to integrate syslogs/event logs from network appliances (Cisco ASA, Fe big IP), Checkpoint etc) in Splunk.&lt;BR /&gt;
Our setup includes, heavy forwarders which receives syslogs from network appliances and then HF sends that data to indexers. On HFs, we have redirected data coming on UDP 514 port to 1514 using iptables. Also, I have created inputs.conf file for all network appliances on the HF side. &lt;STRONG&gt;Example inputs.conf file is:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[udp://XX.YY.ZZ.AA:1514]&lt;BR /&gt;
index=test&lt;BR /&gt;
source=udp:514&lt;BR /&gt;
sourcetype=qos_syslog&lt;BR /&gt;
connection_host=ip&lt;BR /&gt;
disabled=false&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;IP tables on HF side looks like below&lt;/STRONG&gt;:&lt;/P&gt;

&lt;P&gt;Table: filter&lt;BR /&gt;
Chain INPUT (policy ACCEPT)&lt;BR /&gt;
num  target     prot opt source               destination&lt;BR /&gt;
1    ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:1514&lt;BR /&gt;
2    ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:2514&lt;BR /&gt;
3    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:1514&lt;BR /&gt;
4    ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:514&lt;BR /&gt;
5    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:9997&lt;BR /&gt;
6    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:8000&lt;BR /&gt;
7    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:22&lt;BR /&gt;
8    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:514&lt;BR /&gt;
9    ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:2514&lt;/P&gt;

&lt;P&gt;Chain FORWARD (policy ACCEPT)&lt;BR /&gt;
num  target     prot opt source               destination&lt;/P&gt;

&lt;P&gt;Chain OUTPUT (policy ACCEPT)&lt;BR /&gt;
num  target     prot opt source               destination&lt;/P&gt;

&lt;P&gt;Table: nat&lt;BR /&gt;
Chain PREROUTING (policy ACCEPT)&lt;BR /&gt;
num  target     prot opt source               destination&lt;BR /&gt;
1    REDIRECT   tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:514 redir ports 1514&lt;BR /&gt;
2    REDIRECT   udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:514 redir ports 1514&lt;/P&gt;

&lt;P&gt;Chain POSTROUTING (policy ACCEPT)&lt;BR /&gt;
num  target     prot opt source               destination&lt;/P&gt;

&lt;P&gt;Chain OUTPUT (policy ACCEPT)&lt;BR /&gt;
num  target     prot opt source               destination&lt;/P&gt;

&lt;P&gt;When i am running an search on Search head (or checking the HF logs in HF), I can see that in "metrics.log", there are entries wherein it says that "group=udpin_connections, XX.YY.ZZ.AA:1514, sourcePort=1514, _udp_bps=0.00, _udp_kbps=0.00, _udp_avg_thruput=0.00, _udp_kprocessed=0.00, _udp_eps=0.00" where XX.YY.ZZ.AA is the IP address if the network appliance. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Now, my questions are:&lt;/STRONG&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Why I am getting all udp data as zero as per metrics logs? I have checked the index as well and I cannot see anything in it.&lt;/LI&gt;
&lt;LI&gt;Does that mean that connection with the network appliance is established (because i can see entry) in the metrics log? Does it rule out the possibility of any firewall blocks in between HF and network appliance?&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Any help, guidance, suggestions on this issue is very much appreciated. I am running out of options now and the problem is still there. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Regards&lt;BR /&gt;
Vikas&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 20:49:10 GMT</pubDate>
    <dc:creator>vikasverma1985</dc:creator>
    <dc:date>2020-09-29T20:49:10Z</dc:date>
    <item>
      <title>syslog data on udp port is showing as zero bytes in Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/syslog-data-on-udp-port-is-showing-as-zero-bytes-in-Splunk/m-p/395772#M70572</link>
      <description>&lt;P&gt;Hi Splunk experts, &lt;/P&gt;

&lt;P&gt;I ran into a strange situation in Splunk wherein udp connections but data size is zero.&lt;/P&gt;

&lt;P&gt;Just to give you a background of what i am trying to do and how.&lt;/P&gt;

&lt;P&gt;I am using Splunk in our organisation and currently working on creating a solution to integrate syslogs/event logs from network appliances (Cisco ASA, Fe big IP), Checkpoint etc) in Splunk.&lt;BR /&gt;
Our setup includes, heavy forwarders which receives syslogs from network appliances and then HF sends that data to indexers. On HFs, we have redirected data coming on UDP 514 port to 1514 using iptables. Also, I have created inputs.conf file for all network appliances on the HF side. &lt;STRONG&gt;Example inputs.conf file is:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[udp://XX.YY.ZZ.AA:1514]&lt;BR /&gt;
index=test&lt;BR /&gt;
source=udp:514&lt;BR /&gt;
sourcetype=qos_syslog&lt;BR /&gt;
connection_host=ip&lt;BR /&gt;
disabled=false&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;IP tables on HF side looks like below&lt;/STRONG&gt;:&lt;/P&gt;

&lt;P&gt;Table: filter&lt;BR /&gt;
Chain INPUT (policy ACCEPT)&lt;BR /&gt;
num  target     prot opt source               destination&lt;BR /&gt;
1    ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:1514&lt;BR /&gt;
2    ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:2514&lt;BR /&gt;
3    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:1514&lt;BR /&gt;
4    ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:514&lt;BR /&gt;
5    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:9997&lt;BR /&gt;
6    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:8000&lt;BR /&gt;
7    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:22&lt;BR /&gt;
8    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:514&lt;BR /&gt;
9    ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:2514&lt;/P&gt;

&lt;P&gt;Chain FORWARD (policy ACCEPT)&lt;BR /&gt;
num  target     prot opt source               destination&lt;/P&gt;

&lt;P&gt;Chain OUTPUT (policy ACCEPT)&lt;BR /&gt;
num  target     prot opt source               destination&lt;/P&gt;

&lt;P&gt;Table: nat&lt;BR /&gt;
Chain PREROUTING (policy ACCEPT)&lt;BR /&gt;
num  target     prot opt source               destination&lt;BR /&gt;
1    REDIRECT   tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:514 redir ports 1514&lt;BR /&gt;
2    REDIRECT   udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:514 redir ports 1514&lt;/P&gt;

&lt;P&gt;Chain POSTROUTING (policy ACCEPT)&lt;BR /&gt;
num  target     prot opt source               destination&lt;/P&gt;

&lt;P&gt;Chain OUTPUT (policy ACCEPT)&lt;BR /&gt;
num  target     prot opt source               destination&lt;/P&gt;

&lt;P&gt;When i am running an search on Search head (or checking the HF logs in HF), I can see that in "metrics.log", there are entries wherein it says that "group=udpin_connections, XX.YY.ZZ.AA:1514, sourcePort=1514, _udp_bps=0.00, _udp_kbps=0.00, _udp_avg_thruput=0.00, _udp_kprocessed=0.00, _udp_eps=0.00" where XX.YY.ZZ.AA is the IP address if the network appliance. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Now, my questions are:&lt;/STRONG&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Why I am getting all udp data as zero as per metrics logs? I have checked the index as well and I cannot see anything in it.&lt;/LI&gt;
&lt;LI&gt;Does that mean that connection with the network appliance is established (because i can see entry) in the metrics log? Does it rule out the possibility of any firewall blocks in between HF and network appliance?&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Any help, guidance, suggestions on this issue is very much appreciated. I am running out of options now and the problem is still there. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Regards&lt;BR /&gt;
Vikas&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:49:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/syslog-data-on-udp-port-is-showing-as-zero-bytes-in-Splunk/m-p/395772#M70572</guid>
      <dc:creator>vikasverma1985</dc:creator>
      <dc:date>2020-09-29T20:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: syslog data on udp port is showing as zero bytes in Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/syslog-data-on-udp-port-is-showing-as-zero-bytes-in-Splunk/m-p/553564#M91777</link>
      <description>&lt;P&gt;Did you find the answer for this?&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 17:34:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/syslog-data-on-udp-port-is-showing-as-zero-bytes-in-Splunk/m-p/553564#M91777</guid>
      <dc:creator>Priyankakumari1</dc:creator>
      <dc:date>2021-05-28T17:34:16Z</dc:date>
    </item>
  </channel>
</rss>

