Splunk Search

Why am I unable to export log entries from dashboard?

POR160893
Builder

Hi,

I have a dashboard and I need to be able to have an option to export the actual log entries from a dashboard.

The dashboard in question performs a number of aggregations and the export option I currently have just exports these aggregation results.

What I actually need is an export of the corresponding events/ log entries of these aggregation results. Like one of the aggregations on the dashboard is a count of the number of firewalls on a each host. How can I export all the respective log entries for those specific firewalls on that host?

At the moment, I can get these logs when I perform a search but I need the option on the actual dashboard to export these logs?

Can you please help?


Many thanks,

Patrick

 

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

You can only export from the dashboard data that is in the dashboard. Therefore you need another panel with the results of a query that contains the data you want to export.

This is your first problem - how do you reverse the aggregation to get the rows you want?

Your second problem is potentially not displaying these results but still being able to export them. You might be able to do this with some CSS

    <panel depends="$stayhidden$">
      <html>
        <style>
          #hiderows table{
            display: none !important;
          }
        </style>
      </html>
    </panel>
    <panel id="hiderows">
      <table>
        <search>
          <query>your deaggregation search</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
        <option name="refresh.display">progressbar</option>
      </table>
    </panel>

Something to note is that finding the export option is easier if there is at least one page of results

ITWhisperer_0-1646649009886.png

 

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...