<?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: Search-Time Field Extraction - Not Working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-Time-Field-Extraction-Not-Working/m-p/54597#M13322</link>
    <description>&lt;P&gt;Okay...I think I know what is happening.  I am trying to define a sourcetype that is a more specific case, cisco_websense, of a sourcetype that is already defined (cisco_asa and cisco_pix).  &lt;/P&gt;

&lt;P&gt;How does Splunk handle the case where it matches multiple sourcetype definitions?  I would think there would be a defined mechanism for determining precedence of the sourcetype definitions.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:28:05 GMT</pubDate>
    <dc:creator>vragosta</dc:creator>
    <dc:date>2020-09-28T13:28:05Z</dc:date>
    <item>
      <title>Search-Time Field Extraction - Not Working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Time-Field-Extraction-Not-Working/m-p/54596#M13321</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;We are collecting Cisco firewall logs into Splunk and have installed the "Splunk for Cisco Firewalls" application.  There is a particular event id that is generated due to our Websense integration, ASA-5-304001 or PIX-5-304001, which indicates a user has visited a website.  To enable better reporting on this type of log, I wanted to create a custom sourcetype of cisco_websense and parse out some of the data.  These are the modifications I have made to transforms.conf and props.conf:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Transforms.conf modifications&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[force_sourcetype_for_cisco_websense]
DEST_KEY = MetaData:Sourcetype
REGEX = %(ASA|PIX)-5-304001
FORMAT = sourcetype::cisco_websense

[cisco_websense-ip_addresses]
REGEX = \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
FORMAT = host::$1 src_ip::$2 dst_ip::$3

[cisco_websense-URL]
REGEX = (/|http:).*
FORMAT = url::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Props.conf modifications&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRANSFORMS-force-sourcetype_for_cisco_devices = force_sourcetype_for_cisco_websense, force_sourcetype_for_cisco_pix, force_sourcetype_for_cisco_asa, force_sourcetype_for_cisco_fwsm, force_sourcetype_for_cisco_acs, force_sourcetype_for_cisco_ios, force_sourcetype_for_cisco_catchall

[cisco_websense]
REPORT-websense = ciscosyslog-eventinfo, cisco_websense-ip_addresses, cisco_websense-URL
lookup_table = err_code_lookup error_code
LOOKUP-vendor_info_for_cisco_firewall = cisco_firewall_vendor_info_lookup sourcetype OUTPUT vendor,product
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For some reason I cannot figure out, after restarting Splunk the custom sourcetype cisco_websense is not being recognized.  Any help with this issue is greatly appreciated.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2013 14:55:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Time-Field-Extraction-Not-Working/m-p/54596#M13321</guid>
      <dc:creator>vragosta</dc:creator>
      <dc:date>2013-03-07T14:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Search-Time Field Extraction - Not Working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Time-Field-Extraction-Not-Working/m-p/54597#M13322</link>
      <description>&lt;P&gt;Okay...I think I know what is happening.  I am trying to define a sourcetype that is a more specific case, cisco_websense, of a sourcetype that is already defined (cisco_asa and cisco_pix).  &lt;/P&gt;

&lt;P&gt;How does Splunk handle the case where it matches multiple sourcetype definitions?  I would think there would be a defined mechanism for determining precedence of the sourcetype definitions.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:28:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Time-Field-Extraction-Not-Working/m-p/54597#M13322</guid>
      <dc:creator>vragosta</dc:creator>
      <dc:date>2020-09-28T13:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Search-Time Field Extraction - Not Working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Time-Field-Extraction-Not-Working/m-p/54598#M13323</link>
      <description>&lt;P&gt;To illustrate this more clearly, here is the sourcetype definition for cisco_pix:&lt;/P&gt;

&lt;P&gt;[force_sourcetype_for_cisco_pix]&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;
REGEX = %PIX-\d+-\d+&lt;BR /&gt;
FORMAT = sourcetype::cisco_pix&lt;/P&gt;

&lt;P&gt;Here is the sourcetype definition for cisco_websense:&lt;/P&gt;

&lt;P&gt;[force_sourcetype_for_cisco_websense]&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;
REGEX = %(ASA|PIX)-5-304001&lt;BR /&gt;
FORMAT = sourcetype::cisco_websense&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:28:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Time-Field-Extraction-Not-Working/m-p/54598#M13323</guid>
      <dc:creator>vragosta</dc:creator>
      <dc:date>2020-09-28T13:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Search-Time Field Extraction - Not Working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Time-Field-Extraction-Not-Working/m-p/54599#M13324</link>
      <description>&lt;P&gt;I decided it was best to create transforms for the fields I wanted to extract instead of creating a completely different sourcetype.  It appears to be working as I wanted it too.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2013 20:35:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Time-Field-Extraction-Not-Working/m-p/54599#M13324</guid>
      <dc:creator>vragosta</dc:creator>
      <dc:date>2013-03-07T20:35:16Z</dc:date>
    </item>
  </channel>
</rss>

