<?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: How to do fields extractions from multiline fields that have more than 600 characters? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379563#M111178</link>
    <description>&lt;P&gt;This means your regex is bad.. Can you show me exactly what your attempting to extract from the data? Perhaps post your data sample with the text you want extracted in bold&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jul 2018 13:47:20 GMT</pubDate>
    <dc:creator>skoelpin</dc:creator>
    <dc:date>2018-07-30T13:47:20Z</dc:date>
    <item>
      <title>How to do fields extractions from multiline fields that have more than 600 characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379558#M111173</link>
      <description>&lt;P&gt;I am using Splunk Enterprise on Windows machines and extract several fields from multiline events. Everything works fine as long the multiline events are smaller than about 600 chars. When the events are longer, some extracted fields are missing every time I try.&lt;BR /&gt;
 Example Event (a short one):&lt;BR /&gt;
Application exception occurred:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Write a dump to file: D:\AVL\bin\..\log\GenGUI20180423_155507_5221_1229.dmp
App: D:\AVL\bin\GenGUI.exe P:5221 B:1229   Last called exception handler: D:\AVL\bin\GenGUI.exe
When: 2018-04-23;15:55:07.490
Reason: GenGUI.exe caused an EXCEPTION_ACCESS_VIOLATION in module  at 0023:015C3CC1
Register: EAX=015C3CC0  EBX=015DC050  ECX=015C3CC0  EDX=0162AE60  ESI=00000000
EDI=00000000  EBP=04D2FA48  ESP=04D2FA18  EIP=015C3CC1  FLG=00010212
CS=0023   DS=002B  SS=002B  ES=002B   FS=0053  GS=002B
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Stacktrace:&lt;/P&gt;

&lt;P&gt;My extractions:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Extraction AVL_Dump:   (?m).*?to file: (?P(.*))[\r\n]App:
Extraction AVL_Prog:   (?m).*?App: (?P(.*))P:
Extraction AVL_Exc_handle:  (?m).*?exception handler: (?P(.*[\r\n]+)*)When:
Extraction AVL_Reason:   (?m).*?Reason: (?P(.*[\r\n]+)*)Register:
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My estimate is, that there is a parameter to set in props.conf, but which one ?  I searched a while already and took a look at props docu, but did not find it.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 11:49:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379558#M111173</guid>
      <dc:creator>sven_simon</dc:creator>
      <dc:date>2018-07-30T11:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to do fields extractions from multiline fields that have more than 600 characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379559#M111174</link>
      <description>&lt;P&gt;Your extractions don't have names.. These will be located in &lt;CODE&gt;props.conf&lt;/CODE&gt; most likely on the search head. You can also go check under &lt;CODE&gt;Settings &amp;gt; Fields&lt;/CODE&gt;. What exactly are you trying to extract?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 13:30:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379559#M111174</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-07-30T13:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to do fields extractions from multiline fields that have more than 600 characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379560#M111175</link>
      <description>&lt;P&gt;Extraction AVL_Dump:   (?m).&lt;EM&gt;?to file: (?P(.&lt;/EM&gt;))[\r\n]App:&lt;BR /&gt;
Extraction AVL_Prog:   (?m).&lt;EM&gt;?App: (?P(.&lt;/EM&gt;))P:&lt;BR /&gt;
Extraction AVL_Exc_handle:  (?m).&lt;EM&gt;?exception handler: (?P(.&lt;/EM&gt;[\r\n]+)&lt;EM&gt;)When:&lt;BR /&gt;
Extraction AVL_Reason:   (?m).&lt;/EM&gt;?Reason: (?P(.&lt;EM&gt;[\r\n]+)&lt;/EM&gt;)Register:&lt;/P&gt;

&lt;P&gt;That's what I originally copied, but the variables names disappeard somehow when submitting.&lt;BR /&gt;
The name is AVL_Dump in the first example, in '&amp;lt;&amp;gt;' . That works, I get the strings with the correct names - as long as the events are short.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:40:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379560#M111175</guid>
      <dc:creator>sven_simon</dc:creator>
      <dc:date>2020-09-29T20:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to do fields extractions from multiline fields that have more than 600 characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379561#M111176</link>
      <description>&lt;P&gt;It just happened again...I try to replace '&amp;lt;&amp;gt;' with '&lt;STRONG&gt;_'. Perhaps soemthings with German character sets...&lt;BR /&gt;
Extraction AVL_Dump:   (?m).*?to file: (?P&lt;/STRONG&gt;&lt;EM&gt;AVL_Dump&lt;/EM&gt;&lt;STRONG&gt;(.&lt;EM&gt;))[\r\n]App:&lt;BR /&gt;
Extraction AVL_Prog:   (?m).&lt;/EM&gt;?App: (?P&lt;/STRONG&gt;&lt;EM&gt;AVL_Prog&lt;/EM&gt;&lt;STRONG&gt;(.&lt;EM&gt;))P:&lt;BR /&gt;
Extraction AVL_Exc_handle:  (?m).&lt;/EM&gt;?exception handler: (?P&lt;/STRONG&gt;&lt;EM&gt;AVL_Exc_handle&lt;/EM&gt;&lt;STRONG&gt;(.&lt;EM&gt;[\r\n]+)&lt;/EM&gt;)When:&lt;BR /&gt;
Extraction AVL_Reason:   (?m).*?Reason: (?P&lt;/STRONG&gt;&lt;EM&gt;AVL_Reason&lt;/EM&gt;__(.&lt;EM&gt;[\r\n]+)&lt;/EM&gt;)Register:&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:40:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379561#M111176</guid>
      <dc:creator>sven_simon</dc:creator>
      <dc:date>2020-09-29T20:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to do fields extractions from multiline fields that have more than 600 characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379562#M111177</link>
      <description>&lt;P&gt;Not yet exactly what I use in Splunk, but that extraction works for short events.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 13:43:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379562#M111177</guid>
      <dc:creator>sven_simon</dc:creator>
      <dc:date>2018-07-30T13:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to do fields extractions from multiline fields that have more than 600 characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379563#M111178</link>
      <description>&lt;P&gt;This means your regex is bad.. Can you show me exactly what your attempting to extract from the data? Perhaps post your data sample with the text you want extracted in bold&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 13:47:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379563#M111178</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-07-30T13:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to do fields extractions from multiline fields that have more than 600 characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379564#M111179</link>
      <description>&lt;P&gt;Now from WORD, but it dos not take the Bold. Anyway the extraction works fine for short events.&lt;/P&gt;

&lt;P&gt;Application exception occurred:&lt;BR /&gt;
Write a dump to file: D:\Avl\Bin..\Log\Gengui20180423_155507_5221_1229.Dmp&lt;BR /&gt;
App: D:\AVL\bin\GenGUI.exe P:5221 B:1229   Last called exception handler: D:\AVL\bin\GenGUI.exe&lt;BR /&gt;
When: 2018-04-23;15:55:07.490&lt;BR /&gt;
Reason: GenGUI.exe caused an EXCEPTION_ACCESS_VIOLATION in module  at 0023:015C3CC1&lt;BR /&gt;
Register: EAX=015C3CC0  EBX=015DC050  ECX=015C3CC0  EDX=0162AE60  ESI=00000000&lt;BR /&gt;
EDI=00000000  EBP=04D2FA48  ESP=04D2FA18  EIP=015C3CC1  FLG=00010212&lt;BR /&gt;
CS=0023   DS=002B  SS=002B  ES=002B   FS=0053  GS=002B&lt;BR /&gt;
Stacktrace:&lt;/P&gt;

&lt;P&gt;Extraction AVL_Dump:   (?m).&lt;EM&gt;?to file: (?P(.&lt;/EM&gt;))[\r\n]App:&lt;BR /&gt;
Extraction AVL_Prog:   (?m).&lt;EM&gt;?App: (?P(.&lt;/EM&gt;))P:&lt;BR /&gt;
Extraction AVL_Exc_handle:  (?m).&lt;EM&gt;?exception handler: (?P(.&lt;/EM&gt;[\r\n]+)&lt;EM&gt;)When:&lt;BR /&gt;
Extraction AVL_Reason:   (?m).&lt;/EM&gt;?Reason: (?P(.&lt;EM&gt;[\r\n]+)&lt;/EM&gt;)Register:&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:40:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379564#M111179</guid>
      <dc:creator>sven_simon</dc:creator>
      <dc:date>2020-09-29T20:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to do fields extractions from multiline fields that have more than 600 characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379565#M111180</link>
      <description>&lt;P&gt;Here is a copy out of Splunk directly. The first short event shows all the extractions, the last longer only some of them. Always the same are missing.&lt;/P&gt;

&lt;P&gt;06.07.18 11:36:53,823  &lt;/P&gt;

&lt;P&gt;Application exception occurred:&lt;BR /&gt;
Write a dump to file: D:\AVL\bin..\log\CDEDeviceServer20180706_113653_7153_3508.dmp&lt;BR /&gt;
App: D:\AVL\bin\CDEDeviceServer.exe P:7153 B:3508   Last called exception handler: D:\AVL\bin\CDEDeviceServer.exe&lt;BR /&gt;
When: 2018-07-06;11:36:53.823&lt;BR /&gt;
Reason: CDEDeviceServer.exe caused an EXCEPTION_ACCESS_VIOLATION in module CDEDeviceServer.exe at 0023:031A6F69&lt;BR /&gt;
Register: EAX=00000000  EBX=0018FC94  ECX=00000001  EDX=0075D4B0  ESI=0018FC94&lt;BR /&gt;
EDI=00000000  EBP=00000000  ESP=0018F6C0  EIP=031A6F69  FLG=00010246&lt;BR /&gt;
CS=0023   DS=002B  SS=002B  ES=002B   FS=0053  GS=002B&lt;BR /&gt;
Stacktrace:&lt;BR /&gt;
(null)&lt;/P&gt;

&lt;P&gt;AVL_Dump =  D:\AVL\bin..\log\CDEDeviceServer20180706_113653_7153_3508.dmp&lt;BR /&gt;&lt;BR /&gt;
    AVL_Exc_handle =    D:\AVL\bin\CDEDeviceServer.exe&lt;BR /&gt;&lt;BR /&gt;
    AVL_Prog =  D:\AVL\bin\CDEDeviceServer.exe&lt;BR /&gt;&lt;BR /&gt;
    AVL_Pruefstand =    0685&lt;BR /&gt;&lt;BR /&gt;
    AVL_Reason =    CDEDeviceServer.exe caused an EXCEPTION_ACCESS_VIOLATION in module CDEDeviceServer.exe at 0023:031A6F69     &lt;/P&gt;

&lt;P&gt;› &lt;BR /&gt;
 06.07.18 11:08:03,408  &lt;/P&gt;

&lt;P&gt;Application exception occurred:&lt;BR /&gt;
Write a dump to file: D:\AVL\bin..\log\CobraRuntimeAssembler20180706_110803_7153_3460.dmp&lt;BR /&gt;
App: D:\AVL\bin\CobraRuntimeAssembler.exe P:7153 B:3460   Last called exception handler: D:\AVL\bin\CobraRuntimeAssembler.exe&lt;BR /&gt;
When: 2018-07-06;11:08:03.408&lt;BR /&gt;
Reason: CobraRuntimeAssembler.exe caused an  in module KERNELBASE.dll at 0023:7534C54F, RaiseException()+0088 byte(s)&lt;BR /&gt;
Register: EAX=09ADF434  EBX=E0434F4D  ECX=00000001  EDX=00000000  ESI=09ADF4BC&lt;BR /&gt;
EDI=003B32D0  EBP=09ADF484  ESP=09ADF434  EIP=7534C54F  FLG=00000212&lt;BR /&gt;
CS=0023   DS=002B  SS=002B  ES=002B   FS=0053  GS=002B&lt;BR /&gt;
Stacktrace:&lt;BR /&gt;
0023:7534C54F KERNELBASE.dll, RaiseException()+0088 byte(s)&lt;BR /&gt;
0023:66E47DA4 mscorwks.dll, GetCLRFunction()+6855 byte(s)&lt;BR /&gt;
0023:66EA9570 mscorwks.dll, GetPrivateContextsPerfCounters()+184973 byte(s)&lt;BR /&gt;
0023:66BFBBA0 mscorlib.ni.dll&lt;BR /&gt;
0023:664D16D4 mscorlib.ni.dll&lt;BR /&gt;
0023:66DD1E44 mscorwks.dll&lt;BR /&gt;
0023:66EE8161 mscorwks.dll, IEE()+137377 byte(s)&lt;BR /&gt;
0023:66EE81D0 mscorwks.dll, IEE()+137488 byte(s)&lt;BR /&gt;
0023:670B0A67 mscorwks.dll, TranslateSecurityAttributes()+84436 byte(s)&lt;BR /&gt;
0023:664E7306 mscorlib.ni.dll&lt;BR /&gt;
0023:664F078F mscorlib.ni.dll&lt;/P&gt;

&lt;P&gt;Alle 37 Zeilen anzeigen  (=Show all 37 columns, my comment)&lt;/P&gt;

&lt;P&gt;AVL_Dump =  D:\AVL\bin..\log\CobraRuntimeAssembler20180706_110803_7153_3460.dmp&lt;BR /&gt;&lt;BR /&gt;
    AVL_Prog =  D:\AVL\bin\CobraRuntimeAssembler.exe&lt;BR /&gt;&lt;BR /&gt;
    AVL_Pruefstand =    0680        &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:40:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379565#M111180</guid>
      <dc:creator>sven_simon</dc:creator>
      <dc:date>2020-09-29T20:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to do fields extractions from multiline fields that have more than 600 characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379566#M111181</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Please run below search to first check fields are extracted from all events (both short and long). &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search...
| rex field=_raw "(?m).*dump\sto\sfile\:\s(?&amp;lt;AVL_DUMP&amp;gt;.+)[\r\n]App"
| rex field=_raw "(?m).*App\:\s(?&amp;lt;AVL_Prog&amp;gt;.+)P"
| rex field=_raw "(?m).*exception\shandler\:\s(?&amp;lt;AVL_Exec_handle&amp;gt;.+)[\r\n]?When"
| rex field=_raw "(?m).*Reason\:\s(?&amp;lt;AVL_Reason&amp;gt;.+)[\r\n]?Register"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If it is working, then use below extractions in your &lt;CODE&gt;props.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EXTRACT-AVL_Dump = (?m).*dump\sto\sfile\:\s(?&amp;lt;AVL_Dump&amp;gt;.+)[\r\n]App
EXTRACT-AVL_Prog = (?m).*App\:\s(?&amp;lt;AVL_Prog&amp;gt;.+)P
EXTRACT-AVL_Exc_handle = (?m).*exception\shandler\:\s(?&amp;lt;AVL_Exec_handle&amp;gt;.+)[\r\n]?When
EXTRACT-AVL_Reason = (?m).*Reason\:\s(?&amp;lt;AVL_Reason&amp;gt;.+)[\r\n]?Register
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also for pasting special text into questions/comments, please use "Code Sample" option (101010 icon OR &lt;CODE&gt;ctrl+k&lt;/CODE&gt; shortcut) &lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 15:31:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379566#M111181</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2018-07-30T15:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to do fields extractions from multiline fields that have more than 600 characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379567#M111182</link>
      <description>&lt;P&gt;It works for long events too ! Great !&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 09:24:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379567#M111182</guid>
      <dc:creator>sven_simon</dc:creator>
      <dc:date>2018-07-31T09:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to do fields extractions from multiline fields that have more than 600 characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379568#M111183</link>
      <description>&lt;P&gt;So your were right, the Rex was bad defined. It was misleading that it worked for short ones...&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 10:58:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-fields-extractions-from-multiline-fields-that-have/m-p/379568#M111183</guid>
      <dc:creator>sven_simon</dc:creator>
      <dc:date>2018-07-31T10:58:12Z</dc:date>
    </item>
  </channel>
</rss>

