<?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: Splunk cannot find files in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Splunk-cannot-find-files/m-p/429163#M6262</link>
    <description>&lt;P&gt;Try this query, instead.  &lt;CODE&gt;| metadata type=sources index=sambaresultindex | search source=GDSNightlyStagingSIT_*&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2019 13:57:33 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2019-04-30T13:57:33Z</dc:date>
    <item>
      <title>Splunk cannot find files</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Splunk-cannot-find-files/m-p/429157#M6256</link>
      <description>&lt;P&gt;Hi Splunk,&lt;/P&gt;

&lt;P&gt;We use Splunk Enterprise 7.2.3.&lt;/P&gt;

&lt;P&gt;In our environment there are 49 XML files in subfolders which have to be found by splunk. (With file explorer the files are visible.)Name of 45 files look like this:&lt;BR /&gt;
&lt;STRONG&gt;GDSNightlyStagingInstallation_*.xml&lt;/STRONG&gt; and 4 of them look like this: &lt;STRONG&gt;GDSNightlyStagingSIT_*.xml&lt;/STRONG&gt;. (With date and time info in place of '*'.) Each file's document element node has name: &lt;EM&gt;BundleResult&lt;/EM&gt; and has an attribute named &lt;EM&gt;NetDurationMins&lt;/EM&gt;.&lt;/P&gt;

&lt;P&gt;We use this search string:&lt;BR /&gt;
source="&lt;EM&gt;\GDS\*NightlyStaging&lt;/EM&gt;"  | search (BundleResult AND NetDurationMins="*") | dedup LogFile&lt;/P&gt;

&lt;P&gt;This search string can find only the 45 &lt;STRONG&gt;GDSNightlyStagingInstallation_*.xml&lt;/STRONG&gt; files but the remaining 4 &lt;STRONG&gt;GDSNightlyStagingSIT_*.xml&lt;/STRONG&gt; files are not retrieved. Could you explain where is the error, please?&lt;/P&gt;

&lt;P&gt;Thanks in advance,&lt;BR /&gt;
Sandor Michaletzky&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 16:39:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Splunk-cannot-find-files/m-p/429157#M6256</guid>
      <dc:creator>fjp2485</dc:creator>
      <dc:date>2019-04-29T16:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk cannot find files</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Splunk-cannot-find-files/m-p/429158#M6257</link>
      <description>&lt;P&gt;What is the monitor statement (from inputs.conf) for the files?&lt;BR /&gt;
If you run this query: &lt;CODE&gt;| tstats count where index=* source=GDSNightlyStagingSIT_*&lt;/CODE&gt; do the four source files appear in the results?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 16:54:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Splunk-cannot-find-files/m-p/429158#M6257</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-04-29T16:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk cannot find files</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Splunk-cannot-find-files/m-p/429159#M6258</link>
      <description>&lt;P&gt;I would also check permissions on those 4, make sure they didn't carry permissions from another device.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 17:19:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Splunk-cannot-find-files/m-p/429159#M6258</guid>
      <dc:creator>YoungN</dc:creator>
      <dc:date>2019-04-29T17:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk cannot find files</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Splunk-cannot-find-files/m-p/429160#M6259</link>
      <description>&lt;P&gt;I tried to run the tstats, this was its result:&lt;/P&gt;

&lt;P&gt;Reduced buckets were found in index='sambaresultindex'. Tstats searches are not supported on reduced buckets. Search results will be incorrect. &lt;/P&gt;

&lt;P&gt;And of course result count was 0.&lt;/P&gt;

&lt;P&gt;But the same was the result with GDSNightlyStagingInstallation*.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 07:14:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Splunk-cannot-find-files/m-p/429160#M6259</guid>
      <dc:creator>fjp2485</dc:creator>
      <dc:date>2019-04-30T07:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk cannot find files</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Splunk-cannot-find-files/m-p/429161#M6260</link>
      <description>&lt;P&gt;The two kinds of files (i.e. NightyStagingInstallation* and NightlyStagingSIT*) are produced by the same program in the same run of that. In addition the program does not give any special or different permissions to those files.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 07:26:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Splunk-cannot-find-files/m-p/429161#M6260</guid>
      <dc:creator>fjp2485</dc:creator>
      <dc:date>2019-04-30T07:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk cannot find files</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Splunk-cannot-find-files/m-p/429162#M6261</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I've found an index which works for our query and I've rerun the searches.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;This search:&lt;BR /&gt;
| tstats count where index=newsambalogindex source=\\bafs1\Builds\DashboardData\GDS\&lt;EM&gt;\GDSNightlyStaging&lt;/EM&gt;&lt;BR /&gt;
resulted 372983 events (so much because there was no filtering for content).&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;This search:&lt;BR /&gt;
| tstats count where index=newsambalogindex source=\\bafs1\Builds\DashboardData\GDS\&lt;EM&gt;\GDSNightlyStagingInstallation&lt;/EM&gt;&lt;BR /&gt;
resulted the same number of events: 372983.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;This search:&lt;BR /&gt;
| tstats count where index=newsambalogindex source=\\bafs1\Builds\DashboardData\GDS\&lt;EM&gt;\GDSNightlyStagingSIT&lt;/EM&gt;&lt;BR /&gt;
resulted 0.&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Please tell me if I should run other tests in order to continue investigation.&lt;BR /&gt;
Regards,&lt;BR /&gt;
fjp2485&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 08:36:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Splunk-cannot-find-files/m-p/429162#M6261</guid>
      <dc:creator>fjp2485</dc:creator>
      <dc:date>2019-04-30T08:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk cannot find files</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Splunk-cannot-find-files/m-p/429163#M6262</link>
      <description>&lt;P&gt;Try this query, instead.  &lt;CODE&gt;| metadata type=sources index=sambaresultindex | search source=GDSNightlyStagingSIT_*&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 13:57:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Splunk-cannot-find-files/m-p/429163#M6262</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-04-30T13:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk cannot find files</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Splunk-cannot-find-files/m-p/429164#M6263</link>
      <description>&lt;P&gt;Hi nyoung,&lt;BR /&gt;
Many thanks for dealing with my problem so much.&lt;/P&gt;

&lt;P&gt;I ran the search string you've written:&lt;BR /&gt;
"  | metadata type=sources index=sambaresultindex | search source=*GDSNightlyStagingSIT_* "&lt;BR /&gt;
but it didn't retrieve anything.&lt;/P&gt;

&lt;P&gt;Then I removed the SIT_ suffix to check if installation results files are retrieved. They were also not retrieved.&lt;/P&gt;

&lt;P&gt;Then I changed index to newsambalogindex and tried again with this search string (to check if installation log files are retrieved):&lt;BR /&gt;
"   | metadata type=sources index=newsambalogindex | search source=*GDSNightlyStaging* "&lt;BR /&gt;
This search retrieved all installation log files but the test result files didn't appear again.&lt;/P&gt;

&lt;P&gt;Then I tried to retrieve only the test result files:&lt;BR /&gt;
"   | metadata type=sources index=newsambalogindex | search source=*GDSNightlyStagingSIT_* "&lt;BR /&gt;
and this also didn't retrieve anything - of course.&lt;/P&gt;

&lt;P&gt;What do I do wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 14:57:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Splunk-cannot-find-files/m-p/429164#M6263</guid>
      <dc:creator>fjp2485</dc:creator>
      <dc:date>2019-04-30T14:57:21Z</dc:date>
    </item>
  </channel>
</rss>

