<?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 How do I edit my configuration to assign Websense data to different indexes instead of going to the main index? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-configuration-to-assign-Websense-data-to/m-p/201156#M39773</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I've been trying to get Websense data to go into two different indexes based on whether or not the action was blocked. The reason I am doing this is because Websense is generating ~7GB of data every day, which is too much for the HDDs on the indexer to handle.&lt;/P&gt;

&lt;P&gt;I've set up all my .confs in $SPLUNK_HOME/etc/apps/search/local. Here are the relevant lines:&lt;/P&gt;

&lt;P&gt;Inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[udp://514] 
connection_host = ip 
host = xx.xx.x.xxx 
sourcetype = websense_summary  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::xx.xx.x.xxx]
NO_BINARY_CHECK = true
TRANSFORMS-websense = setBlockedIndex, setPermittedIndex 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setBlockedIndex]
DEST_KEY = MetaData:Index
REGEX = action\s*=\s*blocked
FORMAT = index::WebsenseBlocked

[setPermittedIndex]
DEST_KEY = MetaData:Index
REGEX = .
FORMAT = index::WebsensePermitted 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I look for the data, it shows up in index=main, instead of the assigned indexes.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2016 17:32:50 GMT</pubDate>
    <dc:creator>janderson19</dc:creator>
    <dc:date>2016-06-08T17:32:50Z</dc:date>
    <item>
      <title>How do I edit my configuration to assign Websense data to different indexes instead of going to the main index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-configuration-to-assign-Websense-data-to/m-p/201156#M39773</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I've been trying to get Websense data to go into two different indexes based on whether or not the action was blocked. The reason I am doing this is because Websense is generating ~7GB of data every day, which is too much for the HDDs on the indexer to handle.&lt;/P&gt;

&lt;P&gt;I've set up all my .confs in $SPLUNK_HOME/etc/apps/search/local. Here are the relevant lines:&lt;/P&gt;

&lt;P&gt;Inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[udp://514] 
connection_host = ip 
host = xx.xx.x.xxx 
sourcetype = websense_summary  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::xx.xx.x.xxx]
NO_BINARY_CHECK = true
TRANSFORMS-websense = setBlockedIndex, setPermittedIndex 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setBlockedIndex]
DEST_KEY = MetaData:Index
REGEX = action\s*=\s*blocked
FORMAT = index::WebsenseBlocked

[setPermittedIndex]
DEST_KEY = MetaData:Index
REGEX = .
FORMAT = index::WebsensePermitted 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I look for the data, it shows up in index=main, instead of the assigned indexes.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 17:32:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-configuration-to-assign-Websense-data-to/m-p/201156#M39773</guid>
      <dc:creator>janderson19</dc:creator>
      <dc:date>2016-06-08T17:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my configuration to assign Websense data to different indexes instead of going to the main index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-configuration-to-assign-Websense-data-to/m-p/201157#M39774</link>
      <description>&lt;P&gt;I believe you just have a typo in your DEST_KEY and you can strip 'index:' off the FORMAT portion.&lt;/P&gt;

&lt;PRE&gt;
DEST_KEY = _MetaData:Index
FORMAT = myindex
&lt;/PRE&gt;

&lt;P&gt;See this section from transforms.conf.spec&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
_MetaData:Index     : The index where the event should be stored.&lt;BR /&gt;
&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 20:37:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-configuration-to-assign-Websense-data-to/m-p/201157#M39774</guid>
      <dc:creator>shaskell_splunk</dc:creator>
      <dc:date>2016-06-08T20:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my configuration to assign Websense data to different indexes instead of going to the main index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-configuration-to-assign-Websense-data-to/m-p/201158#M39775</link>
      <description>&lt;P&gt;I agree. &lt;BR /&gt;
Please keep in mind that host stanza in props.conf cannot be defined by host field in inputs.conf.  If you're looking for a certain source ip address who is sending udp packets, you need to specify the source IP. &lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 22:27:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-configuration-to-assign-Websense-data-to/m-p/201158#M39775</guid>
      <dc:creator>Masa</dc:creator>
      <dc:date>2016-06-08T22:27:45Z</dc:date>
    </item>
  </channel>
</rss>

