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!

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...