<?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: Trying to filter ESXi before being indexed in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Trying-to-filter-ESXi-before-being-indexed/m-p/315990#M59131</link>
    <description>&lt;P&gt;hey&lt;/P&gt;

&lt;P&gt;So you want to keep specific event and discard the rest.&lt;BR /&gt;
follow this steps to do that : same is written in the doc as well &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;step 1:&lt;/STRONG&gt; Edit props.conf and add the following:you will do this on /local/props.conf of the same path i.e. &lt;CODE&gt;/opt/splunk/etc/app/&amp;lt;appname&amp;gt;/local&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;specify_sourcetype_name&amp;gt;]
TRANSFORMS-set= setnull,setparsing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;step 2:&lt;/STRONG&gt; Edit transforms.conf and add the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[setparsing]
REGEX = dfwpktlogs
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;step 3:&lt;/STRONG&gt; Restart Splunk Enterprise.&lt;/P&gt;

&lt;P&gt;Also, now you want to set the retention period of 1 month i.e. 30 days&lt;/P&gt;

&lt;P&gt;so find that index in mostly in &lt;CODE&gt;/opt/splunk/etc/&amp;lt;appname&amp;gt;/default/indexes.conf&lt;/CODE&gt; and copy the stanza in &lt;CODE&gt;local/indexes.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and add this attribute to that stanza&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;frozenTimePeriodInSecs = 2592000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Find more information in indexes.conf and props.conf&lt;/P&gt;

&lt;P&gt;Let me know if it helps !&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jan 2018 18:09:56 GMT</pubDate>
    <dc:creator>mayurr98</dc:creator>
    <dc:date>2018-01-15T18:09:56Z</dc:date>
    <item>
      <title>Trying to filter ESXi before being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trying-to-filter-ESXi-before-being-indexed/m-p/315989#M59130</link>
      <description>&lt;P&gt;Not sure if this is possible on a single server instance of a Splunk setup but I have all my ESXi logs forwarding to my Splunk server over TCP:1514. I did some digging and found references to the props.conf file and adding a regex filter there. So I did some digging and found multiple copies of this config file but I think (and tell me if I am wrong here) that I need to modify the copy found under:&lt;BR /&gt;
\etc\system\local&lt;/P&gt;

&lt;P&gt;If that is the case I just need some guidance no how to filter out everything but logs that contain the string "dfwpktlogs"&lt;/P&gt;

&lt;P&gt;I am trying to filter out the rest of the logs as ESXi is very chatty and it eats into the license and I have to set the index it feeds into to only keep logs for a month because it just fills up so fast. &lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 17:14:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trying-to-filter-ESXi-before-being-indexed/m-p/315989#M59130</guid>
      <dc:creator>snix</dc:creator>
      <dc:date>2018-01-15T17:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to filter ESXi before being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trying-to-filter-ESXi-before-being-indexed/m-p/315990#M59131</link>
      <description>&lt;P&gt;hey&lt;/P&gt;

&lt;P&gt;So you want to keep specific event and discard the rest.&lt;BR /&gt;
follow this steps to do that : same is written in the doc as well &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;step 1:&lt;/STRONG&gt; Edit props.conf and add the following:you will do this on /local/props.conf of the same path i.e. &lt;CODE&gt;/opt/splunk/etc/app/&amp;lt;appname&amp;gt;/local&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;specify_sourcetype_name&amp;gt;]
TRANSFORMS-set= setnull,setparsing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;step 2:&lt;/STRONG&gt; Edit transforms.conf and add the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[setparsing]
REGEX = dfwpktlogs
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;step 3:&lt;/STRONG&gt; Restart Splunk Enterprise.&lt;/P&gt;

&lt;P&gt;Also, now you want to set the retention period of 1 month i.e. 30 days&lt;/P&gt;

&lt;P&gt;so find that index in mostly in &lt;CODE&gt;/opt/splunk/etc/&amp;lt;appname&amp;gt;/default/indexes.conf&lt;/CODE&gt; and copy the stanza in &lt;CODE&gt;local/indexes.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and add this attribute to that stanza&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;frozenTimePeriodInSecs = 2592000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Find more information in indexes.conf and props.conf&lt;/P&gt;

&lt;P&gt;Let me know if it helps !&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 18:09:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trying-to-filter-ESXi-before-being-indexed/m-p/315990#M59131</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-15T18:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to filter ESXi before being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trying-to-filter-ESXi-before-being-indexed/m-p/315991#M59132</link>
      <description>&lt;P&gt;@mayurr98, thank you for the detailed post. I am still a Splunk novice so I just need to clarify a couple things before I make the change in production. &lt;/P&gt;

&lt;P&gt;The proper path for the props.conf file if I am not using a specific app for our ESXi logs will be &lt;BR /&gt;
&lt;CODE&gt;/opt/splunk/etc/app/search/local&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;Also according to the link, you provided it mentions putting the setting you provided at the top of the prop.config file. Just wanted to verify the location where I put the settings in the file matters. &lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 23:33:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trying-to-filter-ESXi-before-being-indexed/m-p/315991#M59132</guid>
      <dc:creator>snix</dc:creator>
      <dc:date>2018-01-15T23:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to filter ESXi before being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trying-to-filter-ESXi-before-being-indexed/m-p/315992#M59133</link>
      <description>&lt;P&gt;Okay just testing the suggested settings and just made sure to put the new settings at the top of the props.config file and did a restart and it worked! &lt;/P&gt;

&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 00:22:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trying-to-filter-ESXi-before-being-indexed/m-p/315992#M59133</guid>
      <dc:creator>snix</dc:creator>
      <dc:date>2018-01-16T00:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to filter ESXi before being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trying-to-filter-ESXi-before-being-indexed/m-p/315993#M59134</link>
      <description>&lt;P&gt;yes you are right./opt/splunk/etc/system/local/ defines the global path. you should make changes to /app//local is a best practice.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 08:18:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trying-to-filter-ESXi-before-being-indexed/m-p/315993#M59134</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-16T08:18:59Z</dc:date>
    </item>
  </channel>
</rss>

