Splunk Search

Value node <query> is not supposed to have children

carinahOliveira
Explorer

 

I'm doing a query to return the text part of the log, but when using it on my dashboard it gives this error message: Value node <query> is not supposed to have children
 
my query:

index=... user Passed-Authentication earliest=@d
| rex field=_raw "mdm-tlv=ac-user-agent=(?<message>.*?),"
| table message

 
My dashboard:

<panel>
<single>
<title>Meu titulo</title>
<search>
<query>index=... user Passed-Authentication earliest=@d
| rex field=_raw "mdm-tlv=ac-user-agent=(?<message/>.*?),"
| table message </query>
</search>
<option name="height">96</option>
</single>
</panel>

 I believe the error is due to <message>, but I'm new to splunk
 
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Angle brackets etc. need to be encoded when used in the dashboard XML

<panel>
<single>
<title>Meu titulo</title>
<search>
<query>index=... user Passed-Authentication earliest=@d
| rex field=_raw "mdm-tlv=ac-user-agent=(?&lt;message&gt;.*?),"
| table message </query>
</search>
<option name="height">96</option>
</single>
</panel>

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Angle brackets etc. need to be encoded when used in the dashboard XML

<panel>
<single>
<title>Meu titulo</title>
<search>
<query>index=... user Passed-Authentication earliest=@d
| rex field=_raw "mdm-tlv=ac-user-agent=(?&lt;message&gt;.*?),"
| table message </query>
</search>
<option name="height">96</option>
</single>
</panel>
0 Karma

carinahOliveira
Explorer

It worked for me, thank you so much!

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@carinahOliveira 

Try this.

<panel>
<single>
<title>Meu titulo</title>
<search>
<query>index=... user Passed-Authentication earliest=@d
| rex field=_raw "mdm-tlv=ac-user-agent=(?<message>.*?),"
| table message </query>
</search>
<option name="height">96</option>
</single>
</panel>

 

KV

0 Karma
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...