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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...