<?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 split single line field value into multiple lines using regex? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-single-line-field-value-into-multiple-lines-using/m-p/592785#M103758</link>
    <description>&lt;P&gt;See this example&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval field_X = "AB 012 - some text here! ---- HOST INFORMATION: ---- Source: 1.1.2.3 ---- DETAILS: -- Destination ports: 777 33 -- Occurrences: 2244 -- Destination ip counts: 146 -- Actions: blocked -- Order Techniques : X3465 "
| makemv delim="--" field_X
| eval field_X=trim(field_X)&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 06 Apr 2022 23:00:39 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2022-04-06T23:00:39Z</dc:date>
    <item>
      <title>How to split single line field value into multiple lines using regex?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-single-line-field-value-into-multiple-lines-using/m-p/592783#M103756</link>
      <description>&lt;P&gt;I have a field value in splunk with the below format&amp;nbsp; :-&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;field_X = "AB 012 - some text here! ---- HOST INFORMATION: ---- Source: 1.1.2.3 ---- DETAILS: -- Destination ports: 777 33 -- Occurrences: 2244 -- Destination ip counts: 146 -- Actions: blocked -- Order Techniques : X3465 "&lt;/LI-CODE&gt;&lt;P&gt;Now How can I split the abpve field value into multiple lines to make it more user redable using eval and regex&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;field_X = 
AB 012 - some text here! 
HOST INFORMATION: 
Source: 1.1.2.3 
DETAILS: 
Destination ports: 777 33 
Occurrences: 2244 
Destination ip counts: 146 
Actions: blocked 
Order Techniques : X3465 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I wanted is replace "--" with a line space or something to divide the field into multiple lines from 1 line?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 22:54:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-single-line-field-value-into-multiple-lines-using/m-p/592783#M103756</guid>
      <dc:creator>pavanae</dc:creator>
      <dc:date>2022-04-06T22:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to split single line field value into multiple lines using regex?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-single-line-field-value-into-multiple-lines-using/m-p/592785#M103758</link>
      <description>&lt;P&gt;See this example&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval field_X = "AB 012 - some text here! ---- HOST INFORMATION: ---- Source: 1.1.2.3 ---- DETAILS: -- Destination ports: 777 33 -- Occurrences: 2244 -- Destination ip counts: 146 -- Actions: blocked -- Order Techniques : X3465 "
| makemv delim="--" field_X
| eval field_X=trim(field_X)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Apr 2022 23:00:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-single-line-field-value-into-multiple-lines-using/m-p/592785#M103758</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-04-06T23:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to split single line field value into multiple lines using regex?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-single-line-field-value-into-multiple-lines-using/m-p/592786#M103759</link>
      <description>&lt;P&gt;Note that field_X will then be a multi-value field with 9 values&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 23:01:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-single-line-field-value-into-multiple-lines-using/m-p/592786#M103759</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-04-06T23:01:30Z</dc:date>
    </item>
  </channel>
</rss>

