Splunk Search

Random behaviour from splunk

MikeKulls
Path Finder

I'm sending syslog messages through to Splunk in field/value pairs. When the field value contains spaces or certain other characters we put double quotes around the value. When the value contains quotes we add a backslash before the quote, eg

Message=Closed
Message="It was closed"
Message="The dir \"datavol3\" was closed"

The problem is with the third item. Sometimes it will process the \" correctly as being an embedded quote and sometimes it will think it is the end of the string. So completely at random the value of the message field will be one of these:

The dir "datavol3" was closed     <----- correct value
The dir \                         <----- string cut short

I can send the same log through to Splunk 20 times and it parses the message correctly pretty much 50% of the time. Can anyone suggest why this might happen?

0 Karma
1 Solution

MikeKulls
Path Finder

It appears the reason was the half the servers have different config on them. Being a large company it was difficult to get anyone to fix it so I just strip out the embedded quotes before sending the message across to Splunk. Not ideal but sometimes you just have to go with the simplest solution 🙂

View solution in original post

0 Karma

MikeKulls
Path Finder

It appears the reason was the half the servers have different config on them. Being a large company it was difficult to get anyone to fix it so I just strip out the embedded quotes before sending the message across to Splunk. Not ideal but sometimes you just have to go with the simplest solution 🙂

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...