Getting Data In

"no_priority_stripping = true" is not working

kondou
Explorer

I enabled "no_priority_stipping" in inputs.conf with restarting splunk, but still UDP syslog messages do not include priority level at the head of log.

Does anyone know how to enable this?

Tags (1)
0 Karma

mic
Splunk Employee
Splunk Employee

I know that this was posted quite a long time ago, but I am sure that this works in 5.0.3

inputs.conf without "no_priority_stripping"

[udp://45515]
sourcetype = syslog
connection_host = ip
index = custom_orig

running the search " ./splunk search "index=custom_orig | eval T=_time | convert ctime(T) | eval IT=_indextime | eval R=_raw | sort IT | table T sourcetype host R | sort by sourcetype"", I got

         T           sourcetype      host                             R
------------------- ------------ ------------ -------------------------------------------------
06/13/2013 19:57:53 kinda-syslog 10.160.44.71 Jun 13 19:57:53 10.160.44.71  ERROR login failure

inputs.conf with "no_priority_stripping = true"

[udp://45515]
sourcetype = syslog
connection_host = ip
index = custom_orig
no_priority_stripping = true

running the search "./splunk search "index=custom_orig | eval T=_time | convert ctime(T) | eval IT=_indextime | eval R=_raw | sort IT | table T sourcetype host R | sort by sourcetype"", I got

         T          sourcetype     host                R
------------------- ---------- ------------ ------------------------
06/13/2013 20:00:47 syslog     10.160.44.71 <13> ERROR login failure

this should work, try it out

Genti
Splunk Employee
Splunk Employee

make sure that the syslog messages are actually coming with the priority level included. Tell syslog to write to file and examine the file. If the priority is not showing up there, then it is not a splunk issue. You have to find out how to tell syslog to actually send the priority flag over.

Cheers!

0 Karma

mchang_splunk
Splunk Employee
Splunk Employee

Details in docs.splunk.com:
http://docs.splunk.com/Documentation/Splunk/latest/Data/Monitornetworkports

no_priority_stripping = [true|false]

Setting for receiving syslog data.
If this attribute is set to true, Splunk does NOT strip the syslog field from received events.
Depending on how this attribute is set, Splunk sets event timestamps differently:
When set to true, Splunk honors the timestamp as it comes from the source.
When set to false, Splunk assigns events the local time.
Default is false (Splunk strips ).

0 Karma

kondou
Explorer

I examined the syslog packet coming into udp:514 by tcpdump, and it actually includes priority. So, I suspect this is a splunk issue.

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...