<?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: Calculate any Server network  throughput from Cisco ASA logs. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Calculate-any-Server-network-throughput-from-Cisco-ASA-logs/m-p/668296#M229267</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262383"&gt;@Hami-g&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/1620" target="_self"&gt;Splunk Add-on for Cisco ASA&lt;/A&gt; provides the recommended knowledge objects for message 302014:&lt;/P&gt;&lt;P&gt;| eval bytes_per_second=bytes/duration&lt;/P&gt;&lt;P&gt;Specifically, the add-on includes a transform for field extractions and a field for duration:&lt;/P&gt;&lt;PRE&gt;# transforms.conf&lt;BR /&gt;&lt;BR /&gt;[cisco_asa_message_id_302014_302016]&lt;BR /&gt;REGEX = -30201[46]:\s*(\S+)\s+(\S+)\s+connection\s+(\d+)\s+for\s+([^:\s]+)\s*:\s*(?:((?:[\d+.]+|[a-fA-F0-9]*:[a-fA-F0-9]*:[a-fA-F0-9:]*))|(\S+))\s*\/\s*(\d{1,5})(?:\s*\(\s*(?:([\S^\\]+)\\)?([\w\-_@\.]+)\s*\))?\s+to\s+([^:\s]+)\s*:\s*(?:((?:[\d+.]+|[a-fA-F0-9]*:[a-fA-F0-9]*:[a-fA-F0-9:]*))|(\S+))\s*\/\s*(\d{1,5})(?:\s*\(\s*(?:([\S^\\]+)\\)?([\w\-_]+)\s*\))?\s+[Dd]uration:?\s*(?:(\d+)[dD])?\s*(\d+)[Hh]?\s*:\s*(\d+)[Mm]?\s*:\s*(\d+)[Ss]?\s+bytes\s+(\d+)\s*(?:(.+?(?=\s+from))\s+from\s+(\S+)|([^\(]+))?\s*(?:\(\s*([^\)\s]+)\s*\))?&lt;BR /&gt;FORMAT = action::$1 transport::$2 session_id::$3 src_interface::$4 src_ip::$5 src_host::$6 src_port::$7 src_nt_domain::$8 src_user::$9 dest_interface::$10 dest_ip::$11 dest_host::$12 dest_port::$13 dest_nt_domain::$14 dest_user::$15 duration_day::$16 duration_hour::$17 duration_minute::$18 duration_second::$19 bytes::$20 reason::$21 teardown_initiator::$22 reason::$23 user::$24&lt;BR /&gt;&lt;BR /&gt;# props.conf&lt;BR /&gt;&lt;BR /&gt;[cisco:asa]&lt;BR /&gt;# ...&lt;BR /&gt;EVAL-duration = ((coalesce(duration_day, 0))*24*60*60) + (duration_hour*60*60) + (duration_minute*60) + (duration_second)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 11 Nov 2023 02:01:38 GMT</pubDate>
    <dc:creator>tscroggins</dc:creator>
    <dc:date>2023-11-11T02:01:38Z</dc:date>
    <item>
      <title>Calculate any Server network  throughput from Cisco ASA logs.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-any-Server-network-throughput-from-Cisco-ASA-logs/m-p/668294#M229265</link>
      <description>&lt;P&gt;I can see logs from Cisco ASA firewall to Splunk and we are getting logs when a connection close. It have the total data send with bytes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Nov 1 12:19:48 ASA-FW-01 : %ASA-6-302014: Teardown TCP connection 4043630532 for INSIDE-339:192.168.42.10/37308 to OUTSIDE-340:192.168.36.26/8080 duration 0:00:00 bytes 6398 TCP FINs from INSIDE-VLAN339&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am unable to see bytes as a valid field.&amp;nbsp; I tried to create Extract New Fields for this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;^(?:[^:\n]*:){8}\d+\s+(?P&amp;lt;BYTES&amp;gt;\w+\s+)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I use in the search it fails.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=asa_* src_ip = "192.168.42.10"  | rex field=_raw DATA=0 "^(?:[^:\n]*:){8}\d+\s+(?P&amp;lt;BYTES&amp;gt;\w+\s+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;OBJECTIVE&lt;/STRONG&gt; &lt;/FONT&gt;:&amp;nbsp; Calculate Server throughput for flows using Cisco ASA logs.&amp;nbsp; &amp;nbsp;So view the network throughput for the flows using splunk.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2023 01:49:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-any-Server-network-throughput-from-Cisco-ASA-logs/m-p/668294#M229265</guid>
      <dc:creator>Hami-g</dc:creator>
      <dc:date>2023-11-11T01:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate any Server network  throughput from Cisco ASA logs.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-any-Server-network-throughput-from-Cisco-ASA-logs/m-p/668296#M229267</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262383"&gt;@Hami-g&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/1620" target="_self"&gt;Splunk Add-on for Cisco ASA&lt;/A&gt; provides the recommended knowledge objects for message 302014:&lt;/P&gt;&lt;P&gt;| eval bytes_per_second=bytes/duration&lt;/P&gt;&lt;P&gt;Specifically, the add-on includes a transform for field extractions and a field for duration:&lt;/P&gt;&lt;PRE&gt;# transforms.conf&lt;BR /&gt;&lt;BR /&gt;[cisco_asa_message_id_302014_302016]&lt;BR /&gt;REGEX = -30201[46]:\s*(\S+)\s+(\S+)\s+connection\s+(\d+)\s+for\s+([^:\s]+)\s*:\s*(?:((?:[\d+.]+|[a-fA-F0-9]*:[a-fA-F0-9]*:[a-fA-F0-9:]*))|(\S+))\s*\/\s*(\d{1,5})(?:\s*\(\s*(?:([\S^\\]+)\\)?([\w\-_@\.]+)\s*\))?\s+to\s+([^:\s]+)\s*:\s*(?:((?:[\d+.]+|[a-fA-F0-9]*:[a-fA-F0-9]*:[a-fA-F0-9:]*))|(\S+))\s*\/\s*(\d{1,5})(?:\s*\(\s*(?:([\S^\\]+)\\)?([\w\-_]+)\s*\))?\s+[Dd]uration:?\s*(?:(\d+)[dD])?\s*(\d+)[Hh]?\s*:\s*(\d+)[Mm]?\s*:\s*(\d+)[Ss]?\s+bytes\s+(\d+)\s*(?:(.+?(?=\s+from))\s+from\s+(\S+)|([^\(]+))?\s*(?:\(\s*([^\)\s]+)\s*\))?&lt;BR /&gt;FORMAT = action::$1 transport::$2 session_id::$3 src_interface::$4 src_ip::$5 src_host::$6 src_port::$7 src_nt_domain::$8 src_user::$9 dest_interface::$10 dest_ip::$11 dest_host::$12 dest_port::$13 dest_nt_domain::$14 dest_user::$15 duration_day::$16 duration_hour::$17 duration_minute::$18 duration_second::$19 bytes::$20 reason::$21 teardown_initiator::$22 reason::$23 user::$24&lt;BR /&gt;&lt;BR /&gt;# props.conf&lt;BR /&gt;&lt;BR /&gt;[cisco:asa]&lt;BR /&gt;# ...&lt;BR /&gt;EVAL-duration = ((coalesce(duration_day, 0))*24*60*60) + (duration_hour*60*60) + (duration_minute*60) + (duration_second)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2023 02:01:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-any-Server-network-throughput-from-Cisco-ASA-logs/m-p/668296#M229267</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2023-11-11T02:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate any Server network  throughput from Cisco ASA logs.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-any-Server-network-throughput-from-Cisco-ASA-logs/m-p/668303#M229272</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262383"&gt;@Hami-g&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you regex isn't correct, please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;^(?:[^:\n]*:){8}\d+\s+bytes\s(?P&amp;lt;BYTES&amp;gt;\w+\s+)&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/BGPGr9/1" target="_blank"&gt;https://regex101.com/r/BGPGr9/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2023 06:45:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-any-Server-network-throughput-from-Cisco-ASA-logs/m-p/668303#M229272</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-11-11T06:45:43Z</dc:date>
    </item>
  </channel>
</rss>

