<?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: Cisco ASA logging format change in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93841#M97410</link>
    <description>&lt;P&gt;This got me up and running!&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2013 15:19:06 GMT</pubDate>
    <dc:creator>kefoster</dc:creator>
    <dc:date>2013-08-01T15:19:06Z</dc:date>
    <item>
      <title>Cisco ASA logging format change</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93829#M97398</link>
      <description>&lt;P&gt;It looks like with 8.3 of Cisco ASA software the logging format has changed some.&lt;BR /&gt;
Old Version:&lt;BR /&gt;
Mar 15 13:39:13 192.168.1.1 %ASA-6-302015: Built inbound UDP connection 80311398 for External:192.168.2.29/64493 (192.168.2.29/64493) to Internal:192.168.100.1/53 (192.168.100.1/53) (RobinM)&lt;/P&gt;

&lt;P&gt;New Format&lt;BR /&gt;
Mar 15 13:39:15 192.168.100.100 :%ASA-session-6-302021: Teardown ICMP connection for faddr 172.16.49.19/768 gaddr 192.168.162.2/0 laddr 192.168.162.2/0&lt;/P&gt;

&lt;P&gt;The ":%ASA-session" is what has changed.  Is there a easy way to fix/modify the inputs.  The pre-canned reports don't find the new log entries, and the field extractions are not correct.  You can still search manually through splunk though.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 18:45:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93829#M97398</guid>
      <dc:creator>mamborn</dc:creator>
      <dc:date>2012-03-15T18:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ASA logging format change</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93830#M97399</link>
      <description>&lt;P&gt;Were they coming in previously as "sourcetype=cisco_asa" and working properly? Looking at the default props.conf and transforms.conf in the Cisco for Firewalls addon, there's nothing in there that that ":" should've messed up at all.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 20:28:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93830#M97399</guid>
      <dc:creator>tmeader</dc:creator>
      <dc:date>2012-03-15T20:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ASA logging format change</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93831#M97400</link>
      <description>&lt;P&gt;I have two ASA firewalls logging to the splunk server.  The older version 8.0.3 logs correctly and the sourcetype gets set to cisco_asa.&lt;/P&gt;

&lt;P&gt;The newer version 8.4.2 the sourcetype gets set to udp:514.&lt;/P&gt;

&lt;P&gt;I modified the eventtypes and that didn't seem to change it either.&lt;/P&gt;

&lt;P&gt;[root@linux2 local]# more eventtypes.conf&lt;BR /&gt;
[cisco_firewall]&lt;BR /&gt;
search = %ASA OR %PIX OR %FWSM OR :%ASA&lt;/P&gt;

&lt;P&gt;So the reports etc that are pre-canned don't find the data.  &lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 20:38:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93831#M97400</guid>
      <dc:creator>mamborn</dc:creator>
      <dc:date>2012-03-15T20:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ASA logging format change</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93832#M97401</link>
      <description>&lt;P&gt;So you're saying that, even with just a regular search in Splunk (not a canned report from the Cisco Apps) for data from these hosts, even though they are still showing up as sourcetype of cisco_asa, the fields are no longer being extracted properly?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2012 00:38:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93832#M97401</guid>
      <dc:creator>tmeader</dc:creator>
      <dc:date>2012-03-16T00:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ASA logging format change</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93833#M97402</link>
      <description>&lt;P&gt;i am a newb with splunk, but cant you&lt;BR /&gt;
use SED in props.conf to replace ":%ASA-session" with "%ASA"&lt;/P&gt;

&lt;P&gt;[source::your-crisco-source]&lt;BR /&gt;
SEDCMD-fix = s/:%ASA-session/%ASA/g&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2012 01:23:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93833#M97402</guid>
      <dc:creator>cvajs</dc:creator>
      <dc:date>2012-03-16T01:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ASA logging format change</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93834#M97403</link>
      <description>&lt;P&gt;they are not coming in as sourcetype cisco_asa, and the field extractions are not showing.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2012 14:13:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93834#M97403</guid>
      <dc:creator>mamborn</dc:creator>
      <dc:date>2012-03-16T14:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ASA logging format change</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93835#M97404</link>
      <description>&lt;P&gt;I found the problem. The issue isn't the colon in front of the %ASA, it's that the hyphen after it isn't followed by a number anymore. Here's the built-in transform:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[force_sourcetype_for_cisco_asa]
DEST_KEY = MetaData:Sourcetype
REGEX = %ASA-\d+-\d+
FORMAT = sourcetype::cisco_asa
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note "%ASA-\d+-\d+". Your old data HAD %ASA-[numbers]-[numbers], whereas your new format has characters, not numerals, instead.&lt;/P&gt;

&lt;P&gt;Under /Splunk_Home/etc/apps/[Cisco_app]/local/, create a file called "transforms.conf" and add in the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[force_sourcetype_for_cisco_asa]
DEST_KEY = MetaData:Sourcetype
REGEX = %ASA-\w+-\w+
FORMAT = sourcetype::cisco_asa
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Save that and then restart Splunk. That should take care of it. Let me know if that works for you or not.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:31:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93835#M97404</guid>
      <dc:creator>tmeader</dc:creator>
      <dc:date>2020-09-28T11:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ASA logging format change</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93836#M97405</link>
      <description>&lt;P&gt;the events dont come in as a source type, they get matched as a source type.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2012 22:14:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93836#M97405</guid>
      <dc:creator>cvajs</dc:creator>
      <dc:date>2012-03-16T22:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ASA logging format change</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93837#M97406</link>
      <description>&lt;P&gt;ah, good find.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2012 22:26:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93837#M97406</guid>
      <dc:creator>cvajs</dc:creator>
      <dc:date>2012-03-16T22:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ASA logging format change</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93838#M97407</link>
      <description>&lt;P&gt;Why replace it when you can just match it with;&lt;/P&gt;

&lt;P&gt;%ASA-\w+-\d+-\d+ or even %ASA-\S+: &lt;/P&gt;

&lt;P&gt;I haven't tried the latter one though.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2012 13:56:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93838#M97407</guid>
      <dc:creator>kenth</dc:creator>
      <dc:date>2012-03-19T13:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ASA logging format change</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93839#M97408</link>
      <description>&lt;P&gt;this forum is a pita because it takes a single \ as a special char, so you need to escape them.&lt;/P&gt;

&lt;P&gt;%ASA-\w+-\d+-\d+ or even %ASA-S+: &lt;/P&gt;

&lt;P&gt;because these will limit the cisco fw match to just the new version syntax vs using a match that matches new and old. &lt;/P&gt;

&lt;P&gt;use %ASA-(\w+-)?[67]-\d+&lt;/P&gt;

&lt;P&gt;i suggested SED to convert the new syntax back to the old so everything works as is since everything was originally coded for the old ASA syntax, etc.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2012 01:20:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93839#M97408</guid>
      <dc:creator>cvajs</dc:creator>
      <dc:date>2012-03-20T01:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ASA logging format change</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93840#M97409</link>
      <description>&lt;P&gt;This worked, I had upgraded to 5.0 in Jan and did not notice by cisco_asa source type was missing until I ran an old report today. I put in the transform and restarted and all is well.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 20:57:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93840#M97409</guid>
      <dc:creator>moorebj</dc:creator>
      <dc:date>2013-02-19T20:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ASA logging format change</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93841#M97410</link>
      <description>&lt;P&gt;This got me up and running!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2013 15:19:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93841#M97410</guid>
      <dc:creator>kefoster</dc:creator>
      <dc:date>2013-08-01T15:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ASA logging format change</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93842#M97411</link>
      <description>&lt;P&gt;Thanks, this helped a lot. I had two instances of Spunk and the transforms.conf fixed formatting issue. Without the fix, it was hard to search for source/destination ports and source/destination IPs.&lt;/P&gt;

&lt;P&gt;Older version.(After upgrade to version 6.0)&lt;/P&gt;

&lt;P&gt;nano /opt/splunk/etc/apps/Splunk_CiscoFirewalls/local/transforms.conf&lt;/P&gt;

&lt;P&gt;Newer version.&lt;/P&gt;

&lt;P&gt;nano /opt/splunk/etc/apps/Splunk_for_CiscoASA/local/transforms.conf&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:06:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93842#M97411</guid>
      <dc:creator>stevechege</dc:creator>
      <dc:date>2020-09-28T15:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ASA logging format change</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93843#M97412</link>
      <description>&lt;P&gt;Try the following command&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE&gt;   no logging emblem
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Actually there is no change in format.&lt;BR /&gt;
Please reply to this, if it is correct or not.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 09:37:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-ASA-logging-format-change/m-p/93843#M97412</guid>
      <dc:creator>amalamalpm</dc:creator>
      <dc:date>2015-10-08T09:37:37Z</dc:date>
    </item>
  </channel>
</rss>

