Splunk Search

Splunk strange bug with the command "Fields" and space

guilpink
New Member

Hello Community,

I have a strange behavior with a command when it is on the search field of a Dashboard.

In my command from a dashboard: sourcetype=blabla ...... | fields - RPTMois

When I load the Dashboard, 1/2 times the end of the command become: fields-RPTMois, for every Graphic of the Dashboard. Of course because of that, the Graphic doesn't display anything.

Is it a known bug?

Thank you

0 Karma

guilpink
New Member

Hello Graham,

Thank you for your Help, I will try this and post the XML if it doesnt work.

Thank you again.

Have a good day.

0 Karma

gvmorley
Contributor

Hi,

Would you be able to post the XML of your dashboard?

One thing to try is if you're using an inline search, you could wrap the query in the <![CDATA[]]> tag and see if that helps.

So it would look like:

<search>
  <query>
    <![CDATA[sourcetype=blabla... | fields - RPTMois]]>
  </query>
</search>

From my understanding, anything inside this CDATA tag is not parsed by the XML interpreter, so should be 'left alone'.

See if it helps.

If not, post up your Dashboard code (and also the version of Splunk that you're using) and I'm sure there's a solution.

Graham.

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...