<?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 add line break in the eval function? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-line-break-in-the-eval-function/m-p/212132#M62065</link>
    <description>&lt;P&gt;Have you tried&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search|eval new = src_host+","+"Event Code="+EventCode+","+"Sub-Code="+code+","+"Reason="+Reason+",\n,"|makemv new delim=","
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 04 Nov 2016 17:51:16 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2016-11-04T17:51:16Z</dc:date>
    <item>
      <title>How to add line break in the eval function?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-line-break-in-the-eval-function/m-p/212131#M62064</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;How to add the line break in the eval function &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search|eval new =  src_host+","+"Event Code="+EventCode+","+"Sub-Code="+code+","+"Reason="+Reason+","|makemv new delim=","
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Output:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Server1
Event Code=4625
Sub-Code=0xC0000234
Reason=Account locked out.
server2
Event Code=4771
Sub-Code=0x12
Reason=NULL
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I need:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Server1
Event Code=4625
Sub-Code=0xC0000234
Reason=Account locked out.

server2
Event Code=4771
Sub-Code=0x12
Reason=NULL
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Nov 2016 15:53:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-line-break-in-the-eval-function/m-p/212131#M62064</guid>
      <dc:creator>kiran331</dc:creator>
      <dc:date>2016-11-04T15:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to add line break in the eval function?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-line-break-in-the-eval-function/m-p/212132#M62065</link>
      <description>&lt;P&gt;Have you tried&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search|eval new = src_host+","+"Event Code="+EventCode+","+"Sub-Code="+code+","+"Reason="+Reason+",\n,"|makemv new delim=","
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Nov 2016 17:51:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-line-break-in-the-eval-function/m-p/212132#M62065</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-11-04T17:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to add line break in the eval function?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-line-break-in-the-eval-function/m-p/212133#M62066</link>
      <description>&lt;P&gt;I tried this, this is the result I got instead of empty line.&lt;/P&gt;

&lt;P&gt;Server1&lt;BR /&gt;
Event Code=4625&lt;BR /&gt;
Sub-Code=0xC0000234&lt;BR /&gt;
Reason=Account locked out.&lt;BR /&gt;
\n&lt;BR /&gt;
server2&lt;BR /&gt;
Event Code=4771&lt;BR /&gt;
Sub-Code=0x12&lt;BR /&gt;
Reason=NULL&lt;BR /&gt;
\n&lt;BR /&gt;
server3&lt;BR /&gt;
Event Code=4771&lt;BR /&gt;
Sub-Code=0x18&lt;BR /&gt;
Reason=NULL&lt;BR /&gt;
\n&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 18:00:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-line-break-in-the-eval-function/m-p/212133#M62066</guid>
      <dc:creator>kiran331</dc:creator>
      <dc:date>2016-11-04T18:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to add line break in the eval function?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-line-break-in-the-eval-function/m-p/212134#M62067</link>
      <description>&lt;P&gt;Based on those results, I suggest this.  Note the two commas following the Reason field.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search|eval new = src_host+","+"Event Code="+EventCode+","+"Sub-Code="+code+","+"Reason="+Reason+",,"|makemv new delim=","
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Nov 2016 20:26:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-line-break-in-the-eval-function/m-p/212134#M62067</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-11-04T20:26:16Z</dc:date>
    </item>
  </channel>
</rss>

