<?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: Writing a parser for a difficult log entry in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Writing-a-parser-for-a-difficult-log-entry/m-p/477596#M81995</link>
    <description>&lt;P&gt;Thanks Rich, that's at least a start.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Apr 2020 14:28:28 GMT</pubDate>
    <dc:creator>scottj1y</dc:creator>
    <dc:date>2020-04-22T14:28:28Z</dc:date>
    <item>
      <title>Writing a parser for a difficult log entry</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Writing-a-parser-for-a-difficult-log-entry/m-p/477592#M81991</link>
      <description>&lt;P&gt;I have logs which are structure like such: &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;"There are no delimiters between&lt;BR /&gt;
blocks since they are always 8-bytes&lt;BR /&gt;
wide. The first byte following ^E&lt;BR /&gt;
describes the field. Then the URI is&lt;BR /&gt;
terminated by a ^E, and every field&lt;BR /&gt;
begins with a letter"&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;In addition to that the log entries are URL Encoded and also contain key/value pairs which are separated with "=".  Writing a props.conf entry for this is proving to be difficult.  Any suggestions?&lt;/P&gt;

&lt;P&gt;Edit:  Here's an example of an entry&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;0afd165b5e8a6ea9000003e800000002/lite_klonk_ws/results_app_install?dp=kochava&amp;amp;ai=1189345596&amp;amp;mi=7270C021-C7E5-4F60-BF2F-C023815F8081&amp;amp;ar=validated_claim&amp;amp;arid=de632e12-7797-11ea-be9a-008cfa5b3d60-7fc7b21bb700\x{05}x0afd165b\x{05}Z4cc04\x{05}AB38975\x{01}A10.253.22.91\x{01}C10.253.22.91\x{01}D38975\x{01}E10.215.175.36\x{01}F4080\x{05}wapi.attribution.example.net\x{05}gApache-HttpClient/4.5.5 (Java/1.8.0_242)\x{05}Kapplication/json\x{05}mPOST 0ad2de265e8a6ea900000fa000000196/lite_klonk_ws/app-install?ai=sniper.honor.real3d.shooter.assassin.free.android&amp;amp;mi=da172421-d9bb-4bd0-9a96-fb203358c0cb&amp;amp;dp=adjust&amp;amp;id=a196563a53482b8b989229405cd97171-1586130599704&amp;amp;it=1586130599000&amp;amp;ua=an%3Dsniper.honor.real3d.shooter.assassin.free.android%3Bav%3D1.7.1%3Bon%3Dandroid%3Bov%3D9%3Bdo%3DGalaxyJ6&amp;amp;ip=130.193.195.36\x{05}x0ad2de26\x{05}Z4cc04\x{05}AB60156\x{01}A10.210.222.38\x{01}C10.210.222.38\x{01}D60156\x{01}E10.215.175.36\x{01}F4080\x{05}wapi.attribution.example.net\x{05}gYHC/1.0\x{05}Kapplication/json\x{05}mGET 0ad4f0325e8a6ea900000fa00000019c/lite_klonk_ws/in-app?a=8&amp;amp;.yp=10096341&amp;amp;dp=adjust&amp;amp;ai=deezer.android.app&amp;amp;mi=b3e39498-4cbc-4c51-ac40-a04e818233c6&amp;amp;js=no&amp;amp;ec=&amp;amp;ea=ActivatedApp&amp;amp;gv=0&amp;amp;gc=USD&amp;amp;id=efcd439004ca20026334173cfbdec4c9-1586130600022&amp;amp;et=1584361977000&amp;amp;ir=&amp;amp;ua=an%3Ddeezer.android.app%3Bav%3D6.1.21.66%3Bon%3Dandroid%3Bov%3D10%3Bdo%3DGalaxyS10%252B&amp;amp;ip=86.201.55.19\x{05}x0ad4f032\x{05}Z4cc04\x{05}AB42355\x{01}A10.212.240.50\x{01}C10.212.240.50\x{01}D42355\x{01}E10.215.175.36\x{01}F4080\x{05}wapi.attribution.example.net\x{05}gApache-HttpClient/4.5.5 (Java/1.8.0_242)\x{05}Kapplication/json\x{05}mGET 0ad2de265e8a6ea9000017700000016b/lite_klonk_ws/app-install?ai=530168168&amp;amp;mi=8AA4C40D-3D1E-4C66-A6AC-DCDCC8CB75D0&amp;amp;dp=kochava&amp;amp;id=0405235001YGZW3EM4GV751679890&amp;amp;it=1586130586000&amp;amp;ua=Mozilla%2F5.0+%28iPad%3B+CPU+OS+13_3_1+like+Mac+OS+X%29+AppleWebKit%2F605.1.15+%28KHTML%2C+like+Gecko%29+Mobile%2F15E148&amp;amp;ip=73.28.254.14\x{05}x0ad2de26\x{05}Z4cc04\x{05}AB60156\x{01}A10.210.222.38\x{01}C10.210.222.38\x{01}D60156\x{01}E10.215.175.36\x{01}F4080\x{05}wapi.attribution.example.net\x{05}gYHC/1.0\x{05}Kapplication/json\x{05}mGET
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Apr 2020 22:51:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Writing-a-parser-for-a-difficult-log-entry/m-p/477592#M81991</guid>
      <dc:creator>scottj1y</dc:creator>
      <dc:date>2020-04-17T22:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Writing a parser for a difficult log entry</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Writing-a-parser-for-a-difficult-log-entry/m-p/477593#M81992</link>
      <description>&lt;P&gt;Do not quiz.&lt;BR /&gt;
&lt;CODE&gt;URL Encoded&lt;/CODE&gt; : use &lt;CODE&gt;SEDCMD&lt;/CODE&gt; OR &lt;CODE&gt;INGEST_EVAL&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;Writing a props.conf entry for this is proving to be difficult.&lt;/CODE&gt;  : For you.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 23:01:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Writing-a-parser-for-a-difficult-log-entry/m-p/477593#M81992</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-17T23:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Writing a parser for a difficult log entry</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Writing-a-parser-for-a-difficult-log-entry/m-p/477594#M81993</link>
      <description>&lt;P&gt;Some sample data would be helpful.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Apr 2020 12:31:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Writing-a-parser-for-a-difficult-log-entry/m-p/477594#M81993</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-18T12:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Writing a parser for a difficult log entry</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Writing-a-parser-for-a-difficult-log-entry/m-p/477595#M81994</link>
      <description>&lt;P&gt;That's a hard data set to work with.  I suggest starting with these props and then using URLToolbox at search time to get the rest.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
DATETIME_CONFIG = current
SHOULD_LINEMERGE = false
LINE_BREAKER = (?:GET|POST)()
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Apr 2020 12:24:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Writing-a-parser-for-a-difficult-log-entry/m-p/477595#M81994</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-22T12:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Writing a parser for a difficult log entry</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Writing-a-parser-for-a-difficult-log-entry/m-p/477596#M81995</link>
      <description>&lt;P&gt;Thanks Rich, that's at least a start.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 14:28:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Writing-a-parser-for-a-difficult-log-entry/m-p/477596#M81995</guid>
      <dc:creator>scottj1y</dc:creator>
      <dc:date>2020-04-22T14:28:28Z</dc:date>
    </item>
  </channel>
</rss>

