<?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 Add dir. /home as Data set in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Add-dir-home-as-Data-set/m-p/39541#M7358</link>
    <description>&lt;P&gt;How can I add the linux /home directory to a server's Data Set and splunk only 2011 .bash_history data? If I add /home as a Data Set, it splunk's all data in /home going back to 1009 pushing me over my 500mb free version limit.&lt;/P&gt;

&lt;P&gt;Please help.&lt;/P&gt;

&lt;P&gt;Thank!
MW&lt;/P&gt;</description>
    <pubDate>Sat, 05 Feb 2011 03:58:11 GMT</pubDate>
    <dc:creator>mewall2</dc:creator>
    <dc:date>2011-02-05T03:58:11Z</dc:date>
    <item>
      <title>Add dir. /home as Data set</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-dir-home-as-Data-set/m-p/39541#M7358</link>
      <description>&lt;P&gt;How can I add the linux /home directory to a server's Data Set and splunk only 2011 .bash_history data? If I add /home as a Data Set, it splunk's all data in /home going back to 1009 pushing me over my 500mb free version limit.&lt;/P&gt;

&lt;P&gt;Please help.&lt;/P&gt;

&lt;P&gt;Thank!
MW&lt;/P&gt;</description>
      <pubDate>Sat, 05 Feb 2011 03:58:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-dir-home-as-Data-set/m-p/39541#M7358</guid>
      <dc:creator>mewall2</dc:creator>
      <dc:date>2011-02-05T03:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Add dir. /home as Data set</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-dir-home-as-Data-set/m-p/39542#M7359</link>
      <description>&lt;P&gt;Put ".bash_history*" in the whitelist option (edit your entry on the gui: &amp;gt;manager&amp;gt;data&amp;gt;inputs&amp;gt;files &amp;amp; directories)
or simply just monitor exactly that file you want instead of the whole directory&lt;/P&gt;</description>
      <pubDate>Sat, 05 Feb 2011 04:54:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-dir-home-as-Data-set/m-p/39542#M7359</guid>
      <dc:creator>LCM</dc:creator>
      <dc:date>2011-02-05T04:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Add dir. /home as Data set</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-dir-home-as-Data-set/m-p/39543#M7360</link>
      <description>&lt;P&gt;Thanks LCMThoma--But how can I narrow that .bash_history to show only 2011 activity?&lt;/P&gt;

&lt;P&gt;Please advise and thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 05 Feb 2011 05:37:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-dir-home-as-Data-set/m-p/39543#M7360</guid>
      <dc:creator>mewall2</dc:creator>
      <dc:date>2011-02-05T05:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Add dir. /home as Data set</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-dir-home-as-Data-set/m-p/39544#M7361</link>
      <description>&lt;P&gt;mewall2&lt;/P&gt;

&lt;P&gt;Hm, not sure if I get you right. Do you want to see/search only events from 2011 out of your .bash_history file?
If that is the case, you'll have the option in the search-app to drill down only that time-range!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2011 02:24:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-dir-home-as-Data-set/m-p/39544#M7361</guid>
      <dc:creator>LCM</dc:creator>
      <dc:date>2011-02-08T02:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Add dir. /home as Data set</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-dir-home-as-Data-set/m-p/39545#M7362</link>
      <description>&lt;P&gt;Splunk is going to eat the entire file, I don't know of a setting that will only index specific parts of a file. &lt;/P&gt;

&lt;P&gt;However, if you are wanting a specific data set from a file I would advise writing a small script that will write all of the data from year xxxx, in your case 2011, to a file. Then have splunk index that file. If your server is unix based you can cron the script to run every day to keep you file up-to-date.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2011 11:40:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-dir-home-as-Data-set/m-p/39545#M7362</guid>
      <dc:creator>nse</dc:creator>
      <dc:date>2011-02-08T11:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Add dir. /home as Data set</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-dir-home-as-Data-set/m-p/39546#M7363</link>
      <description>&lt;P&gt;If you index the file with its own source/sourcetype, you can use MAX_DAYS_AGO in props.conf and set it to the number of days since in 2011, that way anything prior is ignored.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;p&amp;gt;MAX_DAYS_AGO = 
* Specifies the maximum number of days past, from the current date, that an extracted date
  can be valid.
* For example, if MAX_DAYS_AGO = 10, Splunk ignores dates that are older than 10 days ago.
* Defaults to 2000 (days).
* IMPORTANT: If your data is older than 2000 days, increase this setting.&amp;lt;/p&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/latest/admin/propsconf" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/latest/admin/propsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2011 22:19:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-dir-home-as-Data-set/m-p/39546#M7363</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2011-04-05T22:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Add dir. /home as Data set</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-dir-home-as-Data-set/m-p/39547#M7364</link>
      <description>&lt;P&gt;&lt;CODE&gt;.bash_history&lt;/CODE&gt; may not capture everything if the user has multiple sessions or the session terminates abnormally. See &lt;A href="http://mywiki.wooledge.org/BashFAQ/088" rel="nofollow"&gt;http://mywiki.wooledge.org/BashFAQ/088&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Depending on your setup, you might want to consider using a version of bash with native syslog support compiled in. To help get you started: 
&lt;A href="http://blog.rootshell.be/2009/02/28/bash-history-to-syslog/" rel="nofollow"&gt;http://blog.rootshell.be/2009/02/28/bash-history-to-syslog/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2011 11:14:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-dir-home-as-Data-set/m-p/39547#M7364</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2011-04-08T11:14:30Z</dc:date>
    </item>
  </channel>
</rss>

