Dashboards & Visualizations

using "eval" in a search form - results table not updating

briang67
Communicator

Hello,

I'm trying to get a form search to work where based on "group" I want an "eval" field called total_bytes to show up in a data table on my dashboard view. My search below works correctly from the search bar, but when I add as a form to a custom view, my result set does not show total_bytes.

Can someone help me to determine what's wrong?
Here's the search that works:

index=nc3sec sourcetype=syslog jav20023: | eval total_bytes = sent + rcvd | stats sum(total_bytes) by group

Here's my xml for the form:



<!-- define master search template; leave time unbounded so that the time input can be used -->
index=nc3sec group="$group$"



<!-- Define a radio button list, populated from a search. searchWhenChanged propagates any change in selection immediatly to the results. -->





Any

<![CDATA[index=nc3sec sourcetype=syslog jav20023: | eval total_bytes = sent + rcvd | stats sum(total_bytes) by group]]>

  <!-- add default TimePicker -->  
  <input type="time" />  

  <!-- show results in event viewer -->  
  <table>  
    <title>Total Bytes By Group</title>  
    <option name="count">50</option>  
  </table>  

Tags (1)
0 Karma

Takajian
Builder

I am not sure if this solve your problem. Could you try following search?

"sourcetype=syslog jav20023: | eval total_bytes = sent + rcvd | stats sum(total_bytes) AS total by group | table total group "

Your field "total_bytes" seems not appear just in your row table view. So, I think using table command will help this.

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...