<?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 Cisco Firewalls Add-on host recognition problem in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-Firewalls-Add-on-host-recognition-problem/m-p/66496#M13361</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I've got the Cisco Firewall Addon (latest version with Security Suite) in and working, however I notice that it isn't recognising the host name properly; all events are showing as being from the box that my light forwarder is on. (host=myforwarderboxname)&lt;/P&gt;

&lt;P&gt;It looks like this stanza in the transforms.conf will be the issue&lt;/P&gt;

&lt;PRE&gt;
[cisco_firewall_hostoverride]
DEST_KEY = MetaData:Host
REGEX = \S+\t\S+\s(.*)\t+
FORMAT = host::$1
&lt;/PRE&gt;

&lt;P&gt;However, I tried changing the regex to \s\d+:\d+:\d+\s(.*)\s\% (works on a field extraction) and restarting but this didn't work.&lt;/P&gt;

&lt;P&gt;View source from splunk shows:&lt;/P&gt;

&lt;PRE&gt;
Sep 18 13:10:02 myfirewall %ASA-6-302014: Teardown TCP connection 54647599 for outside....
&lt;/PRE&gt;

&lt;P&gt;Is anyone else doing the same thing, and if so, how did you fix it? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;EDIT:&lt;/P&gt;

&lt;P&gt;Right, after some brain-ache, I found that I can fix this by editing:&lt;/P&gt;

&lt;P&gt;/opt/splunk/etc/apps/Splunk_CiscoFirewalls/default/props.conf&lt;/P&gt;

&lt;P&gt;And appending syslog-host on the end of the first transforms line, eg:&lt;BR /&gt;
&lt;PRE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;H1&gt;[source::...cisco]&lt;/H1&gt;

&lt;P&gt;TRANSFORMS-force-sourcetype_for_cisco_devices = 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, syslog-host&lt;BR /&gt;
&lt;/P&gt;

&lt;P&gt;There must be a foolproof way of doing this... I know that if I upgrade the app, then this will probably get wiped out.&lt;/P&gt;

&lt;P&gt;Do I need to add a one-liner in the local folder in a new props.conf?&lt;/P&gt;

&lt;P&gt;ie: TRANSFORMS-syslog-host&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:48:04 GMT</pubDate>
    <dc:creator>Narj</dc:creator>
    <dc:date>2020-09-28T14:48:04Z</dc:date>
    <item>
      <title>Cisco Firewalls Add-on host recognition problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-Firewalls-Add-on-host-recognition-problem/m-p/66496#M13361</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I've got the Cisco Firewall Addon (latest version with Security Suite) in and working, however I notice that it isn't recognising the host name properly; all events are showing as being from the box that my light forwarder is on. (host=myforwarderboxname)&lt;/P&gt;

&lt;P&gt;It looks like this stanza in the transforms.conf will be the issue&lt;/P&gt;

&lt;PRE&gt;
[cisco_firewall_hostoverride]
DEST_KEY = MetaData:Host
REGEX = \S+\t\S+\s(.*)\t+
FORMAT = host::$1
&lt;/PRE&gt;

&lt;P&gt;However, I tried changing the regex to \s\d+:\d+:\d+\s(.*)\s\% (works on a field extraction) and restarting but this didn't work.&lt;/P&gt;

&lt;P&gt;View source from splunk shows:&lt;/P&gt;

&lt;PRE&gt;
Sep 18 13:10:02 myfirewall %ASA-6-302014: Teardown TCP connection 54647599 for outside....
&lt;/PRE&gt;

&lt;P&gt;Is anyone else doing the same thing, and if so, how did you fix it? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;EDIT:&lt;/P&gt;

&lt;P&gt;Right, after some brain-ache, I found that I can fix this by editing:&lt;/P&gt;

&lt;P&gt;/opt/splunk/etc/apps/Splunk_CiscoFirewalls/default/props.conf&lt;/P&gt;

&lt;P&gt;And appending syslog-host on the end of the first transforms line, eg:&lt;BR /&gt;
&lt;PRE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;H1&gt;[source::...cisco]&lt;/H1&gt;

&lt;P&gt;TRANSFORMS-force-sourcetype_for_cisco_devices = 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, syslog-host&lt;BR /&gt;
&lt;/P&gt;

&lt;P&gt;There must be a foolproof way of doing this... I know that if I upgrade the app, then this will probably get wiped out.&lt;/P&gt;

&lt;P&gt;Do I need to add a one-liner in the local folder in a new props.conf?&lt;/P&gt;

&lt;P&gt;ie: TRANSFORMS-syslog-host&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:48:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-Firewalls-Add-on-host-recognition-problem/m-p/66496#M13361</guid>
      <dc:creator>Narj</dc:creator>
      <dc:date>2020-09-28T14:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco Firewalls Add-on host recognition problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-Firewalls-Add-on-host-recognition-problem/m-p/66497#M13362</link>
      <description>&lt;P&gt;Just noticed that this ASA app has a catch all transform for cisco, which could be problematic!&lt;/P&gt;

&lt;P&gt;[force_sourcetype_for_cisco_catchall]&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;
REGEX = :\s\%((SNMP|CDP|FAN|LINE|LINEPROTO|RTD|SYS|C\d+_[^-]+)-\d+-\S+)&lt;BR /&gt;
FORMAT = sourcetype::cisco&lt;/P&gt;

&lt;P&gt;That's not really an exhaustive list so you can end up with split sourcetype for cisco kit... I've commented that out for now, but as above... if there's a more elegant way to override this, I'd appreciate some advice.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:48:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-Firewalls-Add-on-host-recognition-problem/m-p/66497#M13362</guid>
      <dc:creator>Narj</dc:creator>
      <dc:date>2020-09-28T14:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco Firewalls Add-on host recognition problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-Firewalls-Add-on-host-recognition-problem/m-p/66498#M13363</link>
      <description>&lt;P&gt;Why not put the props entry in &lt;BR /&gt;
/opt/splunk/etc/apps/Splunk_CiscoFirewalls/local/props.conf so it isn't overwritten after upgrade.&lt;/P&gt;

&lt;P&gt;[source::...cisco]&lt;BR /&gt;
TRANSFORMS-force-sourcetype_for_cisco_devices = 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, syslog-host&lt;/P&gt;

&lt;P&gt;You can always remove the ones you don't want it to call as well.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:48:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-Firewalls-Add-on-host-recognition-problem/m-p/66498#M13363</guid>
      <dc:creator>emotz</dc:creator>
      <dc:date>2020-09-28T14:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco Firewalls Add-on host recognition problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-Firewalls-Add-on-host-recognition-problem/m-p/66499#M13364</link>
      <description>&lt;P&gt;Thanks, that sounds like it'll work better! If there is a duplicate entry in the local folder, I take it that overrides the default one?&lt;/P&gt;

&lt;P&gt;How do I effectively "remove" an entire stanza in the "local" version of the file by the way? just add a blank stanza by the same name or something?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2013 14:36:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-Firewalls-Add-on-host-recognition-problem/m-p/66499#M13364</guid>
      <dc:creator>Narj</dc:creator>
      <dc:date>2013-09-19T14:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco Firewalls Add-on host recognition problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-Firewalls-Add-on-host-recognition-problem/m-p/66500#M13365</link>
      <description>&lt;P&gt;Yes - local always overrides default.&lt;BR /&gt;
Yes you can put in a blank stanza if needed&lt;BR /&gt;
Docs explain who wins here -&amp;gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.4/admin/Wheretofindtheconfigurationfiles"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.4/admin/Wheretofindtheconfigurationfiles&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2013 14:44:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-Firewalls-Add-on-host-recognition-problem/m-p/66500#M13365</guid>
      <dc:creator>emotz</dc:creator>
      <dc:date>2013-09-19T14:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco Firewalls Add-on host recognition problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-Firewalls-Add-on-host-recognition-problem/m-p/66501#M13366</link>
      <description>&lt;P&gt;Many thanks! Much appreciated. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2013 11:37:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-Firewalls-Add-on-host-recognition-problem/m-p/66501#M13366</guid>
      <dc:creator>Narj</dc:creator>
      <dc:date>2013-09-20T11:37:58Z</dc:date>
    </item>
  </channel>
</rss>

