<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is there a way to have a list of forwarded files in Splunk? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-have-a-list-of-forwarded-files-in-Splunk/m-p/351491#M162366</link>
    <description>&lt;P&gt;Great! These queries show me the list of my files. Thanks. &lt;/P&gt;

&lt;P&gt;Regarding how my sources map to dashboards:&lt;BR /&gt;
- I have a drop folder on my machine with a universal forwarder monitoring it. &lt;BR /&gt;
- I currently have a dashboard in the Status Indicator app which makes use of the data from the latest file that has been forwarded from my drop folder. So when a new xml file is dropped into that folder, and it gets forwarded to Splunk, the dashboard updates using the latest info. This is the query I use for the dashboard in the Status Indicator app:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=XXXX index=XXXX | eval NewTime=strptime(StartTime,"%Y-%m-%dT%H:%M:%S.%3N") | eval _time=NewTime | eventstats max(_time) AS latestScan by Description  | where _time=latestScan | stats  count by StepResult, Description| sort Description | eval  StepResult = Description
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;This is how my sources are being mapped to the dashboard. File &amp;gt; Drop folder &amp;gt; File forwarded to Splunk &amp;gt; Dashboard updates based on query&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;At the moment, I have included a time picker to the dashboard so I can switch between the latest dashboard being displayed to the previous dashboards i.e. previous forwarded source files (using a date/time range), but this is a bit tedious because I always need to know the date/time of the source file (dashboard) I would like to view.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;With the list of source files being displayed for that specific host and index, I would like to be able to drill down to the Status Indicator dashboard of a specific source file when I click on it from the list.&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Wed, 14 Mar 2018 14:14:53 GMT</pubDate>
    <dc:creator>mawomommoh</dc:creator>
    <dc:date>2018-03-14T14:14:53Z</dc:date>
    <item>
      <title>Is there a way to have a list of forwarded files in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-have-a-list-of-forwarded-files-in-Splunk/m-p/351488#M162363</link>
      <description>&lt;P&gt;I have multiple xml files which have been forwarded to Splunk from my machine. Each file has its own data which is used to create a dashboard using the Status Indicator app. My goal is have a centralized location in Splunk such that I can see all the files that have been forwarded to Splunk (a list) and when I click on each file in the list, it should take me to the dashboard unique to that specific file.&lt;/P&gt;

&lt;P&gt;Is there a way that this can be done in Splunk? Is there any place I can view the list of forwarded items in Splunk which can help me for this purpose?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 20:48:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-have-a-list-of-forwarded-files-in-Splunk/m-p/351488#M162363</guid>
      <dc:creator>mawomommoh</dc:creator>
      <dc:date>2018-03-13T20:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to have a list of forwarded files in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-have-a-list-of-forwarded-files-in-Splunk/m-p/351489#M162364</link>
      <description>&lt;P&gt;You can see all of the sources using the &lt;CODE&gt;metadata&lt;/CODE&gt; command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=sources 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or with this search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats values(source) where host=foo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;We'll need to know more about how your sources map to dashboards to help with the drilldown.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 22:01:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-have-a-list-of-forwarded-files-in-Splunk/m-p/351489#M162364</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-03-13T22:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to have a list of forwarded files in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-have-a-list-of-forwarded-files-in-Splunk/m-p/351490#M162365</link>
      <description>&lt;P&gt;Meta Woot! might be useful if you want to track which sources are sending in data over time, richgalloway's answer is also great, although I'd do something more like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats max(_time) AS mostRecent groupby source, sourcetype, host
| eval mostRecent=strftime(mostRecent, "%+")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Mar 2018 22:32:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-have-a-list-of-forwarded-files-in-Splunk/m-p/351490#M162365</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2018-03-13T22:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to have a list of forwarded files in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-have-a-list-of-forwarded-files-in-Splunk/m-p/351491#M162366</link>
      <description>&lt;P&gt;Great! These queries show me the list of my files. Thanks. &lt;/P&gt;

&lt;P&gt;Regarding how my sources map to dashboards:&lt;BR /&gt;
- I have a drop folder on my machine with a universal forwarder monitoring it. &lt;BR /&gt;
- I currently have a dashboard in the Status Indicator app which makes use of the data from the latest file that has been forwarded from my drop folder. So when a new xml file is dropped into that folder, and it gets forwarded to Splunk, the dashboard updates using the latest info. This is the query I use for the dashboard in the Status Indicator app:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=XXXX index=XXXX | eval NewTime=strptime(StartTime,"%Y-%m-%dT%H:%M:%S.%3N") | eval _time=NewTime | eventstats max(_time) AS latestScan by Description  | where _time=latestScan | stats  count by StepResult, Description| sort Description | eval  StepResult = Description
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;This is how my sources are being mapped to the dashboard. File &amp;gt; Drop folder &amp;gt; File forwarded to Splunk &amp;gt; Dashboard updates based on query&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;At the moment, I have included a time picker to the dashboard so I can switch between the latest dashboard being displayed to the previous dashboards i.e. previous forwarded source files (using a date/time range), but this is a bit tedious because I always need to know the date/time of the source file (dashboard) I would like to view.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;With the list of source files being displayed for that specific host and index, I would like to be able to drill down to the Status Indicator dashboard of a specific source file when I click on it from the list.&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 14 Mar 2018 14:14:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-have-a-list-of-forwarded-files-in-Splunk/m-p/351491#M162366</guid>
      <dc:creator>mawomommoh</dc:creator>
      <dc:date>2018-03-14T14:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to have a list of forwarded files in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-have-a-list-of-forwarded-files-in-Splunk/m-p/351492#M162367</link>
      <description>&lt;P&gt;This works well. Thanks!&lt;/P&gt;

&lt;P&gt;The next thing is to carry out the drill down (you can see my reply to richgalloway's answer below). If you have any ideas pertaining to that, it would be much appreciated.&lt;/P&gt;

&lt;P&gt;Thanks once again.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 14:18:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-have-a-list-of-forwarded-files-in-Splunk/m-p/351492#M162367</guid>
      <dc:creator>mawomommoh</dc:creator>
      <dc:date>2018-03-14T14:18:00Z</dc:date>
    </item>
  </channel>
</rss>

