<?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: Regex parse message to multiple lines help in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Regex-parse-message-to-multiple-lines-help/m-p/475577#M81635</link>
    <description>&lt;P&gt;Please use Code Sample or Ctrl + K to post your sample message. &lt;/P&gt;</description>
    <pubDate>Tue, 14 Apr 2020 08:47:27 GMT</pubDate>
    <dc:creator>vnravikumar</dc:creator>
    <dc:date>2020-04-14T08:47:27Z</dc:date>
    <item>
      <title>Regex parse message to multiple lines help</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-parse-message-to-multiple-lines-help/m-p/475576#M81634</link>
      <description>&lt;P&gt;I have a below message: &amp;#27;&lt;BR /&gt;
[32minfo&amp;#27;[39m: [Clean Storage] brand/market/testing1.html, brand/market/testing2.html, brand/market/testing3.html were successfully deleted from container stores-test&lt;/P&gt;

&lt;P&gt;How do I use the splunk query to show the message as below:&lt;BR /&gt;
brand                   market                 testing1.html&lt;BR /&gt;
brand                   market                 testing2.html&lt;BR /&gt;
brand                   market                 testing3.html&lt;/P&gt;

&lt;P&gt;i've spent hours trying and I just could not got it right.&lt;/P&gt;

&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 03:15:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-parse-message-to-multiple-lines-help/m-p/475576#M81634</guid>
      <dc:creator>kevincai79</dc:creator>
      <dc:date>2020-04-14T03:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regex parse message to multiple lines help</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-parse-message-to-multiple-lines-help/m-p/475577#M81635</link>
      <description>&lt;P&gt;Please use Code Sample or Ctrl + K to post your sample message. &lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 08:47:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-parse-message-to-multiple-lines-help/m-p/475577#M81635</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2020-04-14T08:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Regex parse message to multiple lines help</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-parse-message-to-multiple-lines-help/m-p/475578#M81636</link>
      <description>&lt;P&gt;Use rex command with max_match=0. Try this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw="[32minfo&amp;#27;[39m: [Clean Storage] brand/market/testing1.html, brand/market/testing2.html, brand/market/testing3.html were successfully deleted from container stores-test" 
| rex max_match=0 "(?&amp;lt;message&amp;gt;[\w\/]+.html)" 
| mvexpand message 
| eval message=replace(message, "/", " ") 
| table message
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Apr 2020 10:35:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-parse-message-to-multiple-lines-help/m-p/475578#M81636</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-04-14T10:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Regex parse message to multiple lines help</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-parse-message-to-multiple-lines-help/m-p/475579#M81637</link>
      <description>&lt;P&gt;Hi @kevincai79 &lt;/P&gt;

&lt;P&gt;try this -- &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults |eval hari="[32minfo&amp;#27;[39m: [Clean Storage] brand/market/testing1.html, brand/market/testing2.html, brand/market/testing3.html were successfully deleted from container stores-test" |table hari |rex field=hari "\] (?&amp;lt;Newfield&amp;gt;.*) were" |eval hari=trim(split(Newfield,",")) |rex field=hari mode=sed "s/\// /g" |table hari
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Apr 2020 10:35:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-parse-message-to-multiple-lines-help/m-p/475579#M81637</guid>
      <dc:creator>harishalipaka</dc:creator>
      <dc:date>2020-04-14T10:35:21Z</dc:date>
    </item>
  </channel>
</rss>

