<?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: Help in parsing Avamar Logs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Help-in-parsing-Avamar-Logs/m-p/489427#M83687</link>
    <description>&lt;P&gt;Assuming field values do not contain &lt;CODE&gt;&amp;lt;&amp;gt;&lt;/CODE&gt; characters, this should be fairly straightforward using props and transforms like so:&lt;/P&gt;

&lt;P&gt;props.conf (make sure to set the sourcetype to what you actually use)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[avamar:syslog]
REPORT-key_value_extract = avamar_key_value_extract
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[avamar_key_value_extract]
REGEX = \&amp;lt;([^&amp;gt;]+)\&amp;gt;\s+([^&amp;lt;]*?)\s*(?=\&amp;lt;|$)
FORMAT = $1::$2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/76VHjG/1"&gt;https://regex101.com/r/76VHjG/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You may want to tune the regex a bit, but it is a bit tricky to get a really simple and fast one, that still strips out the spaces around the field values.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2019 09:13:27 GMT</pubDate>
    <dc:creator>FrankVl</dc:creator>
    <dc:date>2019-09-24T09:13:27Z</dc:date>
    <item>
      <title>Help in parsing Avamar Logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-in-parsing-Avamar-Logs/m-p/489426#M83686</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;Please help me to parse this event into key value pair:&lt;/P&gt;

&lt;P&gt;Timestamp Hostname and Field name in angle bracket and values &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Jul  8 22:02:05 RXXXXXXX001 MCS:BS:    &amp;lt;Code&amp;gt; 30900 &amp;lt;Type&amp;gt; WARNING    &amp;lt;Severity&amp;gt; PROCESS &amp;lt;Category&amp;gt;    APPLICATION &amp;lt;User&amp;gt; root &amp;lt;HwSource&amp;gt;    RXXXXXXX001 &amp;lt;Summary&amp;gt; Activity failed
   - timed out before completion. &amp;lt;Group&amp;gt; SQL_Transaction_Logs_4_Hours    &amp;lt;Action&amp;gt; Scheduled Backup    &amp;lt;status_code&amp;gt; 30900 &amp;lt;starttime&amp;gt;    2019-07-08 23:00:00 &amp;lt;targetCid&amp;gt;    8exxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx9    8xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx9    &amp;lt;account_name&amp;gt;    rxxxxxxxxxxx.xx.xxxxxxx.com &amp;lt;client&amp;gt;    /clients/rxxxxxxxxxxx.xx.xxxxxxx.com    &amp;lt;bytes_modified_sent&amp;gt; 0 &amp;lt;client_name&amp;gt;    rxxxxxxxxxxx.xx.xxxxxxx.com    &amp;lt;errorcode&amp;gt; 10019 &amp;lt;CID&amp;gt;    8exxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx9    &amp;lt;hard_limit&amp;gt; 0 &amp;lt;retention_policy&amp;gt;    14_Days &amp;lt;bytes_protected&amp;gt; 0 &amp;lt;endtime&amp;gt;    2019-07-09 0 3:02:05 &amp;lt;PID&amp;gt; SQL    &amp;lt;plugin_name&amp;gt; Windows SQL    &amp;lt;snapup_number&amp;gt;  &amp;lt;snapup_label&amp;gt;     &amp;lt;schedule&amp;gt; Transaction log 4 HR    &amp;lt;bytes_scanned&amp;gt; 1 &amp;lt;WID&amp;gt; Transaction    log 4 HR-SQL_Transactio    n_Logs_4_Hours-1562626800005 &amp;lt;domain&amp;gt;    /clients &amp;lt;dataset&amp;gt; /Transactional_Log    _4_Hours &amp;lt;account&amp;gt; /clients/rxxxxxxxxxxx.xx.xxxxxxx.com
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Sep 2019 08:30:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-in-parsing-Avamar-Logs/m-p/489426#M83686</guid>
      <dc:creator>ansif</dc:creator>
      <dc:date>2019-09-24T08:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help in parsing Avamar Logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-in-parsing-Avamar-Logs/m-p/489427#M83687</link>
      <description>&lt;P&gt;Assuming field values do not contain &lt;CODE&gt;&amp;lt;&amp;gt;&lt;/CODE&gt; characters, this should be fairly straightforward using props and transforms like so:&lt;/P&gt;

&lt;P&gt;props.conf (make sure to set the sourcetype to what you actually use)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[avamar:syslog]
REPORT-key_value_extract = avamar_key_value_extract
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[avamar_key_value_extract]
REGEX = \&amp;lt;([^&amp;gt;]+)\&amp;gt;\s+([^&amp;lt;]*?)\s*(?=\&amp;lt;|$)
FORMAT = $1::$2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/76VHjG/1"&gt;https://regex101.com/r/76VHjG/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You may want to tune the regex a bit, but it is a bit tricky to get a really simple and fast one, that still strips out the spaces around the field values.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 09:13:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-in-parsing-Avamar-Logs/m-p/489427#M83687</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-09-24T09:13:27Z</dc:date>
    </item>
  </channel>
</rss>

