<?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: What Query should i use to look for a certain directory in Linux Servers where the data is mounted? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-Query-should-i-use-to-look-for-a-certain-directory-in-Linux/m-p/463635#M130699</link>
    <description>&lt;P&gt;The full query is something like this:&lt;/P&gt;

&lt;P&gt;index=&lt;EM&gt;_nix_xxxx sourcetype=df host=abdhw003 | eval TotalGBytes= TotalMBytes/1024 | eval UsedGBytes=UsedMbytes/1024 |eval used_pct=100&lt;/EM&gt;(UsedGBytes/TotalGBytes) | stats max(TotalGBytes) as "MaxSize(GB) max(UsedGBytes) as "UsedSize(GB) as "percentUsed" by MountedOn | search PercentUsed&amp;gt;85| Sort PercentUsed&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:49:08 GMT</pubDate>
    <dc:creator>mike000</dc:creator>
    <dc:date>2020-09-30T04:49:08Z</dc:date>
    <item>
      <title>What Query should i use to look for a certain directory in Linux Servers where the data is mounted?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-Query-should-i-use-to-look-for-a-certain-directory-in-Linux/m-p/463632#M130696</link>
      <description>&lt;P&gt;What Query should i use to look for a certain directory in Linux Servers where the data is mounted?&lt;/P&gt;

&lt;P&gt;So basically suppose linux server name is abdhw003...&lt;/P&gt;

&lt;P&gt;so please help me for the query:&lt;/P&gt;

&lt;P&gt;index=*_nix_xxxx  sourcetype=df host=abdhw003. So in this case I want to find the "/doc" folder in that server, What would be the query for that?&lt;/P&gt;

&lt;P&gt;Any help is appreciated, thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:49:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-Query-should-i-use-to-look-for-a-certain-directory-in-Linux/m-p/463632#M130696</guid>
      <dc:creator>mike000</dc:creator>
      <dc:date>2020-09-30T04:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: What Query should i use to look for a certain directory in Linux Servers where the data is mounted?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-Query-should-i-use-to-look-for-a-certain-directory-in-Linux/m-p/463633#M130697</link>
      <description>&lt;P&gt;Try &lt;CODE&gt;index=*_nix_xxxx sourcetype=df host=abdhw003 source="/doc*"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 20:35:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-Query-should-i-use-to-look-for-a-certain-directory-in-Linux/m-p/463633#M130697</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-02T20:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: What Query should i use to look for a certain directory in Linux Servers where the data is mounted?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-Query-should-i-use-to-look-for-a-certain-directory-in-Linux/m-p/463634#M130698</link>
      <description>&lt;P&gt;Hey Rich,&lt;/P&gt;

&lt;P&gt;Thanks for the zipppy response, When I used the one you provide, It did not return any result. It shows&lt;BR /&gt;
"No results found. Try expanding the time range."&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 20:39:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-Query-should-i-use-to-look-for-a-certain-directory-in-Linux/m-p/463634#M130698</guid>
      <dc:creator>mike000</dc:creator>
      <dc:date>2020-04-02T20:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: What Query should i use to look for a certain directory in Linux Servers where the data is mounted?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-Query-should-i-use-to-look-for-a-certain-directory-in-Linux/m-p/463635#M130699</link>
      <description>&lt;P&gt;The full query is something like this:&lt;/P&gt;

&lt;P&gt;index=&lt;EM&gt;_nix_xxxx sourcetype=df host=abdhw003 | eval TotalGBytes= TotalMBytes/1024 | eval UsedGBytes=UsedMbytes/1024 |eval used_pct=100&lt;/EM&gt;(UsedGBytes/TotalGBytes) | stats max(TotalGBytes) as "MaxSize(GB) max(UsedGBytes) as "UsedSize(GB) as "percentUsed" by MountedOn | search PercentUsed&amp;gt;85| Sort PercentUsed&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:49:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-Query-should-i-use-to-look-for-a-certain-directory-in-Linux/m-p/463635#M130699</guid>
      <dc:creator>mike000</dc:creator>
      <dc:date>2020-09-30T04:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: What Query should i use to look for a certain directory in Linux Servers where the data is mounted?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-Query-should-i-use-to-look-for-a-certain-directory-in-Linux/m-p/463636#M130700</link>
      <description>&lt;P&gt;Start off small and add one statement at a time until the query breaks.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_nix_xxxx sourcetype=df host=abdhw003 source="/doc*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you get no results then you may have no data indexed from a file in the &lt;CODE&gt;/doc&lt;/CODE&gt; path.&lt;BR /&gt;
Here's an alternative search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_nix_xxxx sourcetype=df host=abdhw003 "/doc*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Apr 2020 20:57:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-Query-should-i-use-to-look-for-a-certain-directory-in-Linux/m-p/463636#M130700</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-02T20:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: What Query should i use to look for a certain directory in Linux Servers where the data is mounted?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-Query-should-i-use-to-look-for-a-certain-directory-in-Linux/m-p/463637#M130701</link>
      <description>&lt;P&gt;I tried:&lt;BR /&gt;
index=&lt;EM&gt;_nix_xxxx sourcetype=df host=abdhw003  MountedOn="/doc&lt;/EM&gt;" |eval source="/doc*"      and that seems to work.&lt;/P&gt;

&lt;P&gt;Now I have multiple servers&lt;/P&gt;

&lt;P&gt;index=_nix_xxxx sourcetype=df host=abdhw003 OR host=n OR host=n OR host=n or host=n MountedOn="/doc"| eval TotalGBytes= TotalMBytes/1024 | eval UsedGBytes=UsedMbytes/1024 |eval used_pct=100(UsedGBytes/TotalGBytes) | stats max(TotalGBytes) as "MaxSize(GB) max(UsedGBytes) as "UsedSize(GB) as "percentUsed" by MountedOn | search PercentUsed&amp;gt;05| Sort PercentUsed&lt;/P&gt;

&lt;P&gt;Now the stats that I am getting is getting totalled(All 5 servers adding each other and showing me a max value) I think as the stats query has max value, How do I show stats of each server at a time? Any Ideas?&lt;/P&gt;

&lt;P&gt;Thanks for the help. I appreciate it&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:49:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-Query-should-i-use-to-look-for-a-certain-directory-in-Linux/m-p/463637#M130701</guid>
      <dc:creator>mike000</dc:creator>
      <dc:date>2020-09-30T04:49:11Z</dc:date>
    </item>
  </channel>
</rss>

