Dashboards & Visualizations

Why is 2nd dropdown populated correctly, but events table is not updating?

junmun-chan
Explorer

Hi,

This is a follow-up to my previous question. Now, I am trying to add a second drop-down. The values populated are correct, but my events table is not updating. Is there some errors in my codes?

 

 

    <panel>
      <title>Error Log</title>
      <input type="dropdown" token="ProfileLog" searchWhenChanged="true">
        <label>Module</label>
        <fieldForLabel>ESPACE_NAME</fieldForLabel>
        <fieldForValue>ESPACE_NAME</fieldForValue>
        <search base="baseSearch">
          <query>| stats count by ESPACE_NAME</query>
        </search>
        <choice value="*">All</choice>
        <default>*</default>
        <initialValue>*</initialValue>
      </input>
      <input type="dropdown" token="MessageLog" searchWhenChanged="true">
        <label>Error Message</label>
        <search base="baseSearch">
          <query>| search ESPACE_NAME="$ProfileLog$" | stats count by MESSAGE</query>
        </search>
        <default>*</default>
        <fieldForLabel>MESSAGE</fieldForLabel>
        <fieldForValue>MESSAGE</fieldForValue>
        <choice value="*">All</choice>
        <initialValue>*</initialValue>
      </input>
      <event>
        <search base="baseSearch">
          <query>| search ESPACE_NAME="$ProfileLog$"</query>
        </search>
        <option name="list.drilldown">none</option>
        <option name="refresh.display">progressbar</option>
      </event>
    </panel>

 

 

 

Thanks!

Labels (1)
Tags (1)
0 Karma
1 Solution

bowesmana
SplunkTrust
SplunkTrust

You are missing the use of the MessageLog token in your search in your search panel.

Your search in the final panel should be

<query>| search ESPACE_NAME="$ProfileLog$" MESSAGE=$MessageLog|s$</query>

Note the subtle difference of quoting the token vs using $token|s$ which tells Splunk to quote it correctly for you.

 

View solution in original post

0 Karma

bowesmana
SplunkTrust
SplunkTrust

You are missing the use of the MessageLog token in your search in your search panel.

Your search in the final panel should be

<query>| search ESPACE_NAME="$ProfileLog$" MESSAGE=$MessageLog|s$</query>

Note the subtle difference of quoting the token vs using $token|s$ which tells Splunk to quote it correctly for you.

 

0 Karma

junmun-chan
Explorer

Thank you! it works 😄

0 Karma
Get Updates on the Splunk Community!

Splunk Classroom Chronicles: Training Tales and Testimonials (Episode 2)

Welcome to the "Splunk Classroom Chronicles" series, created to help curious, career-minded learners get ...

Index This | I am a number but I am countless. What am I?

January 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  Happy New Year! We’re ...

What’s New in Splunk Enterprise 9.4: Tools for Digital Resilience

PLATFORM TECH TALKS What’s New in Splunk Enterprise 9.4: Tools for Digital Resilience Thursday, February 27, ...