<?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 of makeresults in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-of-makeresults/m-p/460866#M99478</link>
    <description>&lt;P&gt;Your SPL only creates two fields: _time (via &lt;CODE&gt;makeresults&lt;/CODE&gt;) and _raw. If you use &lt;CODE&gt;| makeresults annotate=true&lt;/CODE&gt; you'll also get the host, source,sourcetype, splunk_server, and splunk_server_group fields.  The _raw field will not be parsed automatically.  it's up to you to do that using such SPL commands as &lt;CODE&gt;rex&lt;/CODE&gt;, and &lt;CODE&gt;extract&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 03:19:00 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-09-30T03:19:00Z</dc:date>
    <item>
      <title>Parsing of makeresults</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-of-makeresults/m-p/460865#M99477</link>
      <description>&lt;P&gt;I executed the following SPL with makeresults, but the results only give me the fields for _time and _raw... i don't get parsed fields.  Can this be solved?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults count=100|eval _raw="Process Create:
UtcTime: 2017-04-28 22:08:22.025
ProcessGuid: {a23eae89-bd56-5903-0000-0010e9d95e00}
ProcessId: 6228
Image: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
CommandLine: \"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe\" --type=utility --lang=en-US --no-sandbox --service-request-channel-token=F47498BBA884E523FA93E623C4569B94 --mojo-platform-channel-handle=3432 /prefetch:8
CurrentDirectory: C:\Program Files (x86)\Google\Chrome\Application\58.0.3029.81\
User: LAB\rsmith
LogonGuid: {a23eae89-b357-5903-0000-002005eb0700}
LogonId: 0x7EB05
TerminalSessionId: 1
IntegrityLevel: Medium
Hashes: SHA256=6055A20CF7EC81843310AD37700FF67B2CF8CDE3DCE68D54BA42934177C10B57
ParentProcessGuid: {a23eae89-bd28-5903-0000-00102f345d00}
ParentProcessId: 13220
ParentImage: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
ParentCommandLine: \"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe\" "
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Dec 2019 00:46:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-of-makeresults/m-p/460865#M99477</guid>
      <dc:creator>awmorris</dc:creator>
      <dc:date>2019-12-12T00:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing of makeresults</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-of-makeresults/m-p/460866#M99478</link>
      <description>&lt;P&gt;Your SPL only creates two fields: _time (via &lt;CODE&gt;makeresults&lt;/CODE&gt;) and _raw. If you use &lt;CODE&gt;| makeresults annotate=true&lt;/CODE&gt; you'll also get the host, source,sourcetype, splunk_server, and splunk_server_group fields.  The _raw field will not be parsed automatically.  it's up to you to do that using such SPL commands as &lt;CODE&gt;rex&lt;/CODE&gt;, and &lt;CODE&gt;extract&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:19:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-of-makeresults/m-p/460866#M99478</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-30T03:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing of makeresults</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-of-makeresults/m-p/460867#M99479</link>
      <description>&lt;P&gt;@richgalloway&lt;/P&gt;

&lt;P&gt;I think there is a TYPO in command . It should be &lt;CODE&gt;|makeresults annotate=true&lt;/CODE&gt;.   &lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 09:44:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-of-makeresults/m-p/460867#M99479</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-12-12T09:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing of makeresults</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-of-makeresults/m-p/460868#M99480</link>
      <description>&lt;P&gt;I fixed it.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 12:55:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-of-makeresults/m-p/460868#M99480</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-12-12T12:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing of makeresults</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-of-makeresults/m-p/460869#M99481</link>
      <description>&lt;P&gt;@awmorris &lt;/P&gt;

&lt;P&gt;I've tried using &lt;CODE&gt;rex&lt;/CODE&gt; command. Can you please try below search? I have generated 10 records for testing.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=10 
| eval _raw="Process Create:
 UtcTime: 2017-04-28 22:08:22.025
 ProcessGuid: {a23eae89-bd56-5903-0000-0010e9d95e00}
 ProcessId: 6228
 Image: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
 CommandLine: \"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe\" --type=utility --lang=en-US --no-sandbox --service-request-channel-token=F47498BBA884E523FA93E623C4569B94 --mojo-platform-channel-handle=3432 /prefetch:8
 CurrentDirectory: C:\Program Files (x86)\Google\Chrome\Application\58.0.3029.81\
 User: LAB\rsmith
 LogonGuid: {a23eae89-b357-5903-0000-002005eb0700}
 LogonId: 0x7EB05
 TerminalSessionId: 1 
 IntegrityLevel: Medium
 Hashes: SHA256=6055A20CF7EC81843310AD37700FF67B2CF8CDE3DCE68D54BA42934177C10B57
 ParentProcessGuid: {a23eae89-bd28-5903-0000-00102f345d00}
 ParentProcessId: 13220
 ParentImage: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
 ParentCommandLine: \"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe\" " 
| rex field=_raw "(?&amp;lt;data_field&amp;gt;.+[^:]): (?&amp;lt;data_value&amp;gt;.+[^$])" max_match=0 
| eval num=1,tmp=mvzip(data_field,data_value) 
| accum num 
| stats count by num,tmp | eval data_field=trim(mvindex(split(tmp,","),0)),data_value=trim(mvindex(split(tmp,","),1)), {data_field}=data_value | stats values(*) as * by num | fields - data_field,data_value,num,tmp,count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Dec 2019 15:42:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-of-makeresults/m-p/460869#M99481</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-12-12T15:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing of makeresults</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-of-makeresults/m-p/460870#M99482</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults count=100|eval _raw="Process Create:
UtcTime: 2017-04-28 22:08:22.025
ProcessGuid: {a23eae89-bd56-5903-0000-0010e9d95e00}
ProcessId: 6228
Image: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
CommandLine: \"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe\" --type=utility --lang=en-US --no-sandbox --service-request-channel-token=F47498BBA884E523FA93E623C4569B94 --mojo-platform-channel-handle=3432 /prefetch:8
CurrentDirectory: C:\Program Files (x86)\Google\Chrome\Application\58.0.3029.81\
User: LAB\rsmith
LogonGuid: {a23eae89-b357-5903-0000-002005eb0700}
LogonId: 0x7EB05
TerminalSessionId: 1
IntegrityLevel: Medium
Hashes: SHA256=6055A20CF7EC81843310AD37700FF67B2CF8CDE3DCE68D54BA42934177C10B57
ParentProcessGuid: {a23eae89-bd28-5903-0000-00102f345d00}
ParentProcessId: 13220
ParentImage: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
ParentCommandLine: \"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe\""
| rex mode=sed "s/Process Create:.*/'/ s/:\\s+/='/g s/([\\r\\n]+)/'\1/g"
| kv
| table _raw *
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Dec 2019 00:39:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-of-makeresults/m-p/460870#M99482</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-13T00:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing of makeresults</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-of-makeresults/m-p/460871#M99483</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;|makeresults 
|eval _raw="Process Create:
 UtcTime: 2017-04-28 22:08:22.025
 ProcessGuid: {a23eae89-bd56-5903-0000-0010e9d95e00}
 ProcessId: 6228
 Image: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
 CommandLine: \"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe\" --type=utility --lang=en-US --no-sandbox --service-request-channel-token=F47498BBA884E523FA93E623C4569B94 --mojo-platform-channel-handle=3432 /prefetch:8
 CurrentDirectory: C:\Program Files (x86)\Google\Chrome\Application\58.0.3029.81\
 User: LAB\rsmith
 LogonGuid: {a23eae89-b357-5903-0000-002005eb0700}
 LogonId: 0x7EB05
 TerminalSessionId: 1
 IntegrityLevel: Medium
 Hashes: SHA256=6055A20CF7EC81843310AD37700FF67B2CF8CDE3DCE68D54BA42934177C10B57
 ParentProcessGuid: {a23eae89-bd28-5903-0000-00102f345d00}
 ParentProcessId: 13220
 ParentImage: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
 ParentCommandLine: \"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe\" "
 | rex mode=sed "s/(\\\)/\1\1/g"
 | eval _raw=replace(_raw,"\"","\\\"")
 | rex mode=sed "s/(?m)\/$/\/ /g"
 | rex mode=sed "s/(?m) ?(.+?): (.+)$/\"\1\": \"\2\"/g"
 | rex mode=sed "s/(?m)$/,/g"
 | rex mode=sed "s/^(.+?):.+/{\"\1\":{/1"
 | rex mode=sed "s/,$/}}/1"
 | spath
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I do not recommend.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Dec 2019 00:44:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-of-makeresults/m-p/460871#M99483</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-12-14T00:44:47Z</dc:date>
    </item>
  </channel>
</rss>

