<?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: Dynatrace audit logs indexing problem in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Dynatrace-audit-logs-indexing-problem/m-p/401819#M49026</link>
    <description>&lt;P&gt;Thanks, however as you can see there are special characters, how would you write regex with :&lt;/P&gt;

&lt;P&gt;beginning with anything (risky?) until YYYY-MM-DD?&lt;/P&gt;

&lt;P&gt;LINE_BREAKER = (^.+)\d{4}-\d{2}-\d{1,2} ?&lt;/P&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/6fN7JB/1"&gt;https://regex101.com/r/6fN7JB/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Aug 2018 22:59:22 GMT</pubDate>
    <dc:creator>splunkreal</dc:creator>
    <dc:date>2018-08-14T22:59:22Z</dc:date>
    <item>
      <title>Dynatrace audit logs indexing problem</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Dynatrace-audit-logs-indexing-problem/m-p/401817#M49024</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;we try to index correctly SecAudit-BackendServer.1.log from Dynatrace however the non-encrypted log files have special characters just before the timestamp :&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;\x00\x00\x00\xEB\x00\x00\x00&amp;#1;2018-08-14T16:34:51.920+0200 user=toto,source=1.2.3.4,category=AuditLog,object=,event=Access,status=success,message="successfully read audit log /opt/dynatrace/dynatrace-7.0/log/server/SecAudit-FrontendServer.1.log"&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;in ssh:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5541i5A45BF65B5AD04FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;How would you handle with TIME_PREFIX in props.conf?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 15:20:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Dynatrace-audit-logs-indexing-problem/m-p/401817#M49024</guid>
      <dc:creator>splunkreal</dc:creator>
      <dc:date>2018-08-14T15:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace audit logs indexing problem</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Dynatrace-audit-logs-indexing-problem/m-p/401818#M49025</link>
      <description>&lt;P&gt;Hi @realsplunk,&lt;/P&gt;

&lt;P&gt;IMO, this should be handled by using LINE_BREAKER. Configure line breaking to discard all special characters before date, something like below&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype]
LINE_BREAKER = ([\r\n]+^.+)\d{4}\-\d{2}\-\d{1,2} ## This will discard newline, carriage return characters along with encrypted text.
SHOULD_LINEMERGE = false
TIME_PREFIX = ^
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N%z
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Aug 2018 20:08:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Dynatrace-audit-logs-indexing-problem/m-p/401818#M49025</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2018-08-14T20:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace audit logs indexing problem</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Dynatrace-audit-logs-indexing-problem/m-p/401819#M49026</link>
      <description>&lt;P&gt;Thanks, however as you can see there are special characters, how would you write regex with :&lt;/P&gt;

&lt;P&gt;beginning with anything (risky?) until YYYY-MM-DD?&lt;/P&gt;

&lt;P&gt;LINE_BREAKER = (^.+)\d{4}-\d{2}-\d{1,2} ?&lt;/P&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/6fN7JB/1"&gt;https://regex101.com/r/6fN7JB/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 22:59:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Dynatrace-audit-logs-indexing-problem/m-p/401819#M49026</guid>
      <dc:creator>splunkreal</dc:creator>
      <dc:date>2018-08-14T22:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace audit logs indexing problem</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Dynatrace-audit-logs-indexing-problem/m-p/401820#M49027</link>
      <description>&lt;P&gt;Your LINE_BREAKING regex should also include \n-new line and \r-carriage return characters inside capturing group.&lt;/P&gt;

&lt;P&gt;Per &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.2/Data/Configureeventlinebreaking#Line_breaking_general_attributes"&gt;docs&lt;/A&gt;,&lt;/P&gt;

&lt;P&gt;The LINE_BREAKER expression must contain a capturing group (a pair of parentheses that defines an identified subcomponent of the match.)&lt;/P&gt;

&lt;P&gt;Wherever the expression matches, Splunk software considers the start of the first capturing group to be the end of the previous event, and considers the end of the first capturing group to be the start of the next event.&lt;/P&gt;

&lt;P&gt;Splunk software discards the contents of the first capturing group. This content will not be present in any event, as Splunk software considers this text to come between lines.&lt;/P&gt;

&lt;P&gt;That said, &lt;CODE&gt;LINE_BREAKER = ([\r\n]+^.+)\d{4}\-\d{2}\-\d{1,2}&lt;/CODE&gt; will discard any special characters until YYYY-MM-DD.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/6fN7JB/2"&gt;https://regex101.com/r/6fN7JB/2&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 12:22:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Dynatrace-audit-logs-indexing-problem/m-p/401820#M49027</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2018-08-15T12:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace audit logs indexing problem</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Dynatrace-audit-logs-indexing-problem/m-p/401821#M49028</link>
      <description>&lt;P&gt;Hi Nittala_surya, I'm in contact with support because this doesn't work maybe bad characters impact so I'm testing SEDCMD to clean data first.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 14:50:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Dynatrace-audit-logs-indexing-problem/m-p/401821#M49028</guid>
      <dc:creator>splunkreal</dc:creator>
      <dc:date>2018-08-17T14:50:34Z</dc:date>
    </item>
  </channel>
</rss>

