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!

New Case Study Shows the Value of Partnering with Splunk Academic Alliance

The University of Nevada, Las Vegas (UNLV) is another premier research institution helping to shape the next ...

How to Monitor Google Kubernetes Engine (GKE)

We’ve looked at how to integrate Kubernetes environments with Splunk Observability Cloud, but what about ...

Index This | How can you make 45 using only 4?

October 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...