Splunk Search

adding fields to a simpleResultsTable?

dlovett
Path Finder

This should be a simple search to find the age of unresolved help desk tickets. I'm new to splunk thus there may be a better way to to this. I simply want to display the results in a simpleResultsTable on a dashboard using advanced XML except I can't get "myField" to show up in a SimpleResultsTable. Any thoughts?

<module name="HiddenSearch" layoutPanel="panel_row2_col2" group="Oldest Unsolved Tickets" autoRun="True">

<param name="search">sourcetype=Remedy_Tickets | transaction ID CreateDate | where eventcount=1 AND QueryType="CREATED" | eval myField=round((now - CreateDate)/60/60/24, 1) | sort CreateDate</param>

<param name="earliest">-7d@d</param>

<param name="latest">@d</param>

<module name="SimpleResultsTable">

<param name="fields">_time ID Group myField</param>

</module>

</module>

0 Karma

dlovett
Path Finder

Actually, this appears to give the results I'm looking for:

sourcetype=Remedy_Tickets | transaction ID CreateDate | where eventcount=1 AND QueryType="CREATED" | eval dur=round((now() - CreateDate)/60/60/24, 1) | stats values(ID) as ID, values(Group) as Group, values(dur) as Days | sort CreateDate
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...