<?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 Multiline Event with Values in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Multiline-Event-with-Values/m-p/486687#M83337</link>
    <description>&lt;P&gt;I have an event that is multiple lines:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Mon May  4 22:06:47 PDT 2020
/dev/sdb1       13245631 12450471    127548  99% /Volumes/Media
/dev/sdd2        9460988  7196839   1787272  81% /Volumes/Media 2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm trying to turn it into something that I can monitor over time in a time chart but I'm having trouble getting this split up properly. I tried this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=sysmon | rex max_match=0 (?&amp;lt;event&amp;gt;.*)\N | rex max_match=0 \/dev\/(?&amp;lt;drive&amp;gt;\w+)\s*(?&amp;lt;blocks&amp;gt;\d+)\s*(?&amp;lt;used&amp;gt;\d+)\s*(?&amp;lt;available&amp;gt;\d+)\s*(?&amp;lt;usepcnt&amp;gt;\d+)%\s*(?&amp;lt;mounted&amp;gt;.*) | timechart span=30m values(used) by drive
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It starts to look right in the table, I have time and values but they are all grouped together still:&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/8792i4689342C96A79434/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 May 2020 06:47:41 GMT</pubDate>
    <dc:creator>trever</dc:creator>
    <dc:date>2020-05-05T06:47:41Z</dc:date>
    <item>
      <title>Multiline Event with Values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiline-Event-with-Values/m-p/486687#M83337</link>
      <description>&lt;P&gt;I have an event that is multiple lines:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Mon May  4 22:06:47 PDT 2020
/dev/sdb1       13245631 12450471    127548  99% /Volumes/Media
/dev/sdd2        9460988  7196839   1787272  81% /Volumes/Media 2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm trying to turn it into something that I can monitor over time in a time chart but I'm having trouble getting this split up properly. I tried this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=sysmon | rex max_match=0 (?&amp;lt;event&amp;gt;.*)\N | rex max_match=0 \/dev\/(?&amp;lt;drive&amp;gt;\w+)\s*(?&amp;lt;blocks&amp;gt;\d+)\s*(?&amp;lt;used&amp;gt;\d+)\s*(?&amp;lt;available&amp;gt;\d+)\s*(?&amp;lt;usepcnt&amp;gt;\d+)%\s*(?&amp;lt;mounted&amp;gt;.*) | timechart span=30m values(used) by drive
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It starts to look right in the table, I have time and values but they are all grouped together still:&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/8792i4689342C96A79434/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 06:47:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiline-Event-with-Values/m-p/486687#M83337</guid>
      <dc:creator>trever</dc:creator>
      <dc:date>2020-05-05T06:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline Event with Values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiline-Event-with-Values/m-p/486688#M83338</link>
      <description>&lt;P&gt;The &lt;CODE&gt;max_match&lt;/CODE&gt; option of &lt;CODE&gt;rex&lt;/CODE&gt; produces multi-value fields.  You must use &lt;CODE&gt;mvexpand&lt;/CODE&gt; to create separate events for each value.  Perhaps this run-anywhere query will help.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval raw="Mon May  4 22:06:47 PDT 2020
 /dev/sdb1       13245631 12450471    127548  99% /Volumes/Media
 /dev/sdd2        9460988  7196839   1787272  81% /Volumes/Media 2" 
| rex field=raw max_match=0 (?&amp;lt;event&amp;gt;.*)\N 
| mvexpand event
| rex field=event max_match=0 \/dev\/(?&amp;lt;drive&amp;gt;\w+)\s*(?&amp;lt;blocks&amp;gt;\d+)\s*(?&amp;lt;used&amp;gt;\d+)\s*(?&amp;lt;available&amp;gt;\d+)\s*(?&amp;lt;usepcnt&amp;gt;\d+)%\s*(?&amp;lt;mounted&amp;gt;.*)
| timechart span=30m values(used) by drive
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 May 2020 13:27:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiline-Event-with-Values/m-p/486688#M83338</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-05T13:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline Event with Values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiline-Event-with-Values/m-p/486689#M83339</link>
      <description>&lt;P&gt;That did exactly what I was looking for! Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 22:54:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiline-Event-with-Values/m-p/486689#M83339</guid>
      <dc:creator>trever</dc:creator>
      <dc:date>2020-05-05T22:54:52Z</dc:date>
    </item>
  </channel>
</rss>

