<?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: Find Largest Files of Linux Using Splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Find-Largest-Files-of-Linux-Using-Splunk/m-p/541466#M153304</link>
    <description>&lt;P&gt;Your monitor path is not correct. It should be &lt;STRONG&gt;[monitor:///var/log]&lt;/STRONG&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2021 08:10:25 GMT</pubDate>
    <dc:creator>manjunathmeti</dc:creator>
    <dc:date>2021-02-26T08:10:25Z</dc:date>
    <item>
      <title>Find Largest Files of Linux Using Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-Largest-Files-of-Linux-Using-Splunk/m-p/541328#M153264</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On my Linux machine, which has &lt;STRONG&gt;Splunk Forwarder &lt;/STRONG&gt;and &lt;STRONG&gt;Splunk Add-on for Unix and Linux&lt;/STRONG&gt; installed, I'm using this command to find the largest files on my server;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sudo du -a /var/log | sort -n -r | head -n 20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It enlists the first 20 largest files in the /var/log directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I would like to do the same using Splunk.&lt;/P&gt;&lt;P&gt;Is there a way to edit the inputs.conf file to be able to index the data onto Splunk or is there any type or search I can make use of to achieve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance to anyone willing to help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reagards,&lt;/P&gt;&lt;P&gt;Hisham&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 12:40:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-Largest-Files-of-Linux-Using-Splunk/m-p/541328#M153264</guid>
      <dc:creator>hishamjan</dc:creator>
      <dc:date>2021-02-25T12:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Find Largest Files of Linux Using Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-Largest-Files-of-Linux-Using-Splunk/m-p/541376#M153275</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228379"&gt;@hishamjan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Enable the monitor for&lt;STRONG&gt;&amp;nbsp;/var/log&lt;/STRONG&gt; and set index in inputs.conf in the eadd-on.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///var/log]
disabled = 0
index = indexname&lt;/LI-CODE&gt;&lt;P&gt;Search below query to get top files by size.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count where index="indexname" earliest=1 by source | sort -count | head 20&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this reply helps you, an upvote/like would be appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 16:07:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-Largest-Files-of-Linux-Using-Splunk/m-p/541376#M153275</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-02-25T16:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Find Largest Files of Linux Using Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-Largest-Files-of-Linux-Using-Splunk/m-p/541460#M153301</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129090"&gt;@manjunathmeti&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;I edited my inputs.conf file with;&lt;/P&gt;&lt;P&gt;[monitor://&lt;SPAN&gt;2&amp;gt;/dev/null]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index = monitor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;disabled = false&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(restarted splunk after that)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and my search with its result is attached below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-02-26 at 12.51.41 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13085i86DF76A06C7AF50A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2021-02-26 at 12.51.41 PM.png" alt="Screenshot 2021-02-26 at 12.51.41 PM.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It isn't returning anything (All-Time, Last 24 hrs, Last 4 hours etc)...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there anything I'm doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;your help is appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 07:56:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-Largest-Files-of-Linux-Using-Splunk/m-p/541460#M153301</guid>
      <dc:creator>hishamjan</dc:creator>
      <dc:date>2021-02-26T07:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Find Largest Files of Linux Using Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-Largest-Files-of-Linux-Using-Splunk/m-p/541466#M153304</link>
      <description>&lt;P&gt;Your monitor path is not correct. It should be &lt;STRONG&gt;[monitor:///var/log]&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 08:10:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-Largest-Files-of-Linux-Using-Splunk/m-p/541466#M153304</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-02-26T08:10:25Z</dc:date>
    </item>
  </channel>
</rss>

