<?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: Parsing a SAP audit log in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35563#M6476</link>
    <description>&lt;P&gt;We tried changing this as suggested and it still brings them in as one event.  see the example above for an example of the log.&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2013 13:23:37 GMT</pubDate>
    <dc:creator>hannanp</dc:creator>
    <dc:date>2013-05-17T13:23:37Z</dc:date>
    <item>
      <title>Parsing a SAP audit log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35558#M6471</link>
      <description>&lt;P&gt;We are trying to pull back audit files back into Splunk.  We are running into a couple of issues:&lt;/P&gt;

&lt;P&gt;1.) Parsing the log file for the datetime/transaction/etc is unbelievable hard to decipher.  Has anyone had any luck in determining how to break the stamp down?  an example would be this:&lt;/P&gt;

&lt;P&gt;20130515153145001237100032D2whqwbtspZ  (I know the first part is YYYYMMDDHHMMSS - I have heard that it then is a 6 digit microsecond but am not positive)&lt;/P&gt;

&lt;P&gt;2.) The event has 2AUW20130515153145001237100032D2 as a start.  We are wanting to make a new event for everytime we see a 2au.&lt;/P&gt;

&lt;P&gt;Here is the props file we have so far:&lt;/P&gt;

&lt;P&gt;CHARSET=UTF-16 BE&lt;BR /&gt;
NO_BINARY_CHECK=true&lt;/P&gt;

&lt;H1&gt;LINE_BREAKER = (?=2AU)&lt;/H1&gt;

&lt;P&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;
LEARN_MODEL = false&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE=false&lt;BR /&gt;
BREAK_ONLY_BEFORE=\s2AU[^\s]+\s+&lt;BR /&gt;
TIME_PREFIX=2AU.&lt;BR /&gt;
TIME_FORMAT=%Y%m%d%H%M%S&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=14&lt;/P&gt;

&lt;P&gt;Anyone run into this before by chance?&lt;/P&gt;

&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:54:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35558#M6471</guid>
      <dc:creator>hannanp</dc:creator>
      <dc:date>2020-09-28T13:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing a SAP audit log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35559#M6472</link>
      <description>&lt;P&gt;It's hard to tell from this information alone, but..;&lt;/P&gt;

&lt;P&gt;You don't need the &lt;CODE&gt;BREAK_ONLY_*&lt;/CODE&gt; when &lt;CODE&gt;SHOULD_LINEMERGE=false&lt;/CODE&gt;. Then only &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt; counts.&lt;/P&gt;

&lt;P&gt;Please post two events - but I &lt;EM&gt;think&lt;/EM&gt; that your &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt; regex might be written like;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;LINE_BREAKER = ([\r\n]+)(?=2AU)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 09:24:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35559#M6472</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-05-16T09:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing a SAP audit log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35560#M6473</link>
      <description>&lt;P&gt;Assuming your logs look like these examples i found on the net:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2AUJ20091008153028000447200000D0a01-testDDIC        SM19   00011  gtva01-test
2AUE20091008153028000447200000D0a01-testDDIC        SM19   0001   gtvra01-test  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You will need this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;NO_BINARY_CHECK=1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You wont need anything else:&lt;/P&gt;

&lt;P&gt;l&lt;IMG src="http://splunk-base.splunk.com//storage/Capture_4.png" alt="alt text" /&gt;l&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 11:53:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35560#M6473</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2013-05-16T11:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing a SAP audit log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35561#M6474</link>
      <description>&lt;P&gt;Unfortunately there are no carriage returns in the data.  Here is a sample of the information we are receiving:&lt;BR /&gt;
2AUW20130516080853001208400044D2WORKSTATION1USERNAME    ZLSDU032            ZLSDU032                                1002ZLSDU032&amp;amp;                                                       WORKSTATION1            2AU320130516080853001208400044D2WORKSTATION2USERNAME    VL71                ZLSDU032                                1002VL71                                                            WORKSTATION2&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 13:16:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35561#M6474</guid>
      <dc:creator>hannanp</dc:creator>
      <dc:date>2013-05-16T13:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing a SAP audit log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35562#M6475</link>
      <description>&lt;P&gt;No line breaks at all, odd kind of log. Have you tried the suggestion of jkat54 below? Works? Or is your log fundamentally different?&lt;/P&gt;

&lt;P&gt;Don't know, but perhaps you can use a &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt; regex like (not tested);&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;LINE_BREAKER = ()(?=2AU)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;or if you &lt;EM&gt;need&lt;/EM&gt; to match something&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;LINE_BREAKER = (\b)(?=2AU)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2013 08:31:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35562#M6475</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-05-17T08:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing a SAP audit log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35563#M6476</link>
      <description>&lt;P&gt;We tried changing this as suggested and it still brings them in as one event.  see the example above for an example of the log.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2013 13:23:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35563#M6476</guid>
      <dc:creator>hannanp</dc:creator>
      <dc:date>2013-05-17T13:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing a SAP audit log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35564#M6477</link>
      <description>&lt;P&gt;We tried both and neither would break the line into events.  Here is what we have in our props.conf file.&lt;/P&gt;

&lt;P&gt;LEARN_MODEL = false&lt;BR /&gt;
CHARSET=UTF-16BE&lt;BR /&gt;
NO_BINARY_CHECK = 1&lt;BR /&gt;
LINE_BREAKER = (b)(?=\x002\x00A\x00U)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:55:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35564#M6477</guid>
      <dc:creator>hannanp</dc:creator>
      <dc:date>2020-09-28T13:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing a SAP audit log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35565#M6478</link>
      <description>&lt;P&gt;Here is the props.conf file that we had to put on the server and the client.  Not quite sure which was doing the most good but we ended up getting all the events broken out to individual lines.&lt;/P&gt;

&lt;P&gt;LINE_BREAKER=.()2AU&lt;BR /&gt;
CHARSET=UTF-16BE&lt;BR /&gt;
TIME_PREFIX=2AU.&lt;BR /&gt;
TIME_FORMAT=%Y%m%d%H%M%S&lt;BR /&gt;
LINE_MERGE=false&lt;BR /&gt;
NO_BINARY_CHECK=1&lt;/P&gt;

&lt;P&gt;Hope this helps out someone who is trying to do the same thing.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:55:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35565#M6478</guid>
      <dc:creator>hannanp</dc:creator>
      <dc:date>2020-09-28T13:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing a SAP audit log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35566#M6479</link>
      <description>&lt;P&gt;You can use Armadillo to Splunk the SAP audit log &lt;A href="http://bit.ly/15r1vq5"&gt;http://bit.ly/15r1vq5&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2013 12:35:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35566#M6479</guid>
      <dc:creator>Marinus</dc:creator>
      <dc:date>2013-11-06T12:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing a SAP audit log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35567#M6480</link>
      <description>&lt;P&gt;Sap events are 200 caracteres size, the dimiliter is not 2AU. I think that the best way is setting the propertty Truncate.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2014 08:14:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35567#M6480</guid>
      <dc:creator>jmallorquin</dc:creator>
      <dc:date>2014-04-28T08:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing a SAP audit log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35568#M6481</link>
      <description>&lt;P&gt;Yeah worked for me too. It just needs to be on the Forwarder's props.conf.&lt;/P&gt;

&lt;P&gt;However in my case, I had to use&lt;BR /&gt;
CHARSET=UTF16-LE&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 22:14:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35568#M6481</guid>
      <dc:creator>sshres5</dc:creator>
      <dc:date>2016-11-01T22:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing a SAP audit log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35569#M6482</link>
      <description>&lt;P&gt;How are you gathering your SAP audit logs?  I had have my dev guys write a program to export the audit log, thus they could modify the fields and log data in a more friendly splunk method. It gets saved to a text file then I am monitoring the text file.&lt;/P&gt;

&lt;P&gt;But I'm trying to find a better method than this.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 21:04:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-a-SAP-audit-log/m-p/35569#M6482</guid>
      <dc:creator>pjdmfi</dc:creator>
      <dc:date>2019-04-05T21:04:47Z</dc:date>
    </item>
  </channel>
</rss>

