<?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: How do I get Splunk for Cisco ASA to recognize names for src or dest? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-Splunk-for-Cisco-ASA-to-recognize-names-for-src-or/m-p/153419#M97967</link>
    <description>&lt;OL&gt;
&lt;LI&gt;Yes, you can use names, but in order to use threat lists you might have to do a DNS lookup on the particular hostname to get the IP. I don't believe the ASA app accounts for this case.&lt;/LI&gt;
&lt;LI&gt;See 1&lt;/LI&gt;
&lt;LI&gt;EXTRACTs are perfectly valid, but since the app already uses transforms I'd advise you to put your regexes in transforms.conf and reference them in props.conf with REPORT-class_name = stanza_name_in_transforms.conf&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Sensible stanza names might be &lt;EM&gt;cisco_destination_hostname_port&lt;/EM&gt;, &lt;EM&gt;cisco_destination&lt;/EM&gt; and &lt;EM&gt;cisco_source_hostname_port&lt;/EM&gt; or just use the regexes already in transforms.conf as a base. An easy way to test your regex is through a site like Rubular.com&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 18:28:45 GMT</pubDate>
    <dc:creator>mikaelbje</dc:creator>
    <dc:date>2020-09-28T18:28:45Z</dc:date>
    <item>
      <title>How do I get Splunk for Cisco ASA to recognize names for src or dest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-Splunk-for-Cisco-ASA-to-recognize-names-for-src-or/m-p/153418#M97966</link>
      <description>&lt;P&gt;Our Cisco ASA logs sometimes contain names that represent objects instead of the IP address.&lt;/P&gt;

&lt;P&gt;Example:&lt;BR /&gt;
Dec 18 05:37:49 10.163.19.1 %ASA-6-302013: Built outbound TCP connection 1372634579 for outside:54.235.189.180/443 (54.235.189.180/443) to inside:IND062GFP016/29631 (216.37.41.4/56892)&lt;/P&gt;

&lt;P&gt;In this example, you'll see IND062GFP016 instead of an IP address (in this case for a src).  I know that we could put in all of our Cisco configs the command "no names" to remove the names.  However, when I looked at the CIM, it shows that the src/dest (Network Traffic data model) is a string that can represent an IPv4, IPv6, or a name.&lt;/P&gt;

&lt;P&gt;I created new regex statements to pull out the name and alias it to either the src or dest fields.  However, now my threatlist reports are not working correctly.&lt;/P&gt;

&lt;P&gt;So my questions are:&lt;BR /&gt;
 1.  Can we really use names instead of IPs?&lt;BR /&gt;
 2. If we can, then is the other parts like threatlist searches broke?&lt;BR /&gt;
 3. Are my fixes for the props.conf correct or should they be in transforms.conf?&lt;/P&gt;

&lt;P&gt;props.conf:&lt;BR /&gt;
EXTRACT-dest_name-dest_port = (?i)to\s(\S+?):(?P[a-z0-9_-]+?)\/(?P\d+)&lt;BR /&gt;
EXTRACT-dest_name = (?i)to\s(\S+?):(?P[a-z0-9_-]+?)\s&lt;BR /&gt;
EXTRACT-src_name-src_port = (?i)for\s(\S+?):(?P[a-z0-9_-]+?)\/(?P\d+)&lt;/P&gt;

&lt;P&gt;FIELDALIAS-src_for_cisco_asa_name = src_name as src&lt;BR /&gt;
FIELDALIAS-dest_for_cisco_asa_name = dest_name as dest&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:24:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-Splunk-for-Cisco-ASA-to-recognize-names-for-src-or/m-p/153418#M97966</guid>
      <dc:creator>ronogle</dc:creator>
      <dc:date>2020-09-28T18:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get Splunk for Cisco ASA to recognize names for src or dest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-Splunk-for-Cisco-ASA-to-recognize-names-for-src-or/m-p/153419#M97967</link>
      <description>&lt;OL&gt;
&lt;LI&gt;Yes, you can use names, but in order to use threat lists you might have to do a DNS lookup on the particular hostname to get the IP. I don't believe the ASA app accounts for this case.&lt;/LI&gt;
&lt;LI&gt;See 1&lt;/LI&gt;
&lt;LI&gt;EXTRACTs are perfectly valid, but since the app already uses transforms I'd advise you to put your regexes in transforms.conf and reference them in props.conf with REPORT-class_name = stanza_name_in_transforms.conf&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Sensible stanza names might be &lt;EM&gt;cisco_destination_hostname_port&lt;/EM&gt;, &lt;EM&gt;cisco_destination&lt;/EM&gt; and &lt;EM&gt;cisco_source_hostname_port&lt;/EM&gt; or just use the regexes already in transforms.conf as a base. An easy way to test your regex is through a site like Rubular.com&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:28:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-Splunk-for-Cisco-ASA-to-recognize-names-for-src-or/m-p/153419#M97967</guid>
      <dc:creator>mikaelbje</dc:creator>
      <dc:date>2020-09-28T18:28:45Z</dc:date>
    </item>
  </channel>
</rss>

