<?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 Newline in events in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Newline-in-events/m-p/353079#M5630</link>
    <description>&lt;P&gt;Hello, I have Splunk events (stacktrace) which have '\n' in them. I want these '\n' to appear as new lines (but not new event).&lt;/P&gt;

&lt;P&gt;So for example, currently my event might look like&lt;/P&gt;

&lt;P&gt;aaaaa \n bbbbb \n ccccc \n ddddd&lt;/P&gt;

&lt;P&gt;I want this event to appear as follows.&lt;/P&gt;

&lt;P&gt;aaaaa&lt;BR /&gt;
bbbbb&lt;BR /&gt;
ccccc&lt;BR /&gt;
ddddd&lt;/P&gt;

&lt;P&gt;I know we can use rex command for this at search time, but I want the events to be indexed with \n character stored as newline.&lt;/P&gt;

&lt;P&gt;How can I do this at index time?&lt;/P&gt;</description>
    <pubDate>Mon, 23 Apr 2018 18:41:05 GMT</pubDate>
    <dc:creator>arpit_arora</dc:creator>
    <dc:date>2018-04-23T18:41:05Z</dc:date>
    <item>
      <title>Newline in events</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Newline-in-events/m-p/353079#M5630</link>
      <description>&lt;P&gt;Hello, I have Splunk events (stacktrace) which have '\n' in them. I want these '\n' to appear as new lines (but not new event).&lt;/P&gt;

&lt;P&gt;So for example, currently my event might look like&lt;/P&gt;

&lt;P&gt;aaaaa \n bbbbb \n ccccc \n ddddd&lt;/P&gt;

&lt;P&gt;I want this event to appear as follows.&lt;/P&gt;

&lt;P&gt;aaaaa&lt;BR /&gt;
bbbbb&lt;BR /&gt;
ccccc&lt;BR /&gt;
ddddd&lt;/P&gt;

&lt;P&gt;I know we can use rex command for this at search time, but I want the events to be indexed with \n character stored as newline.&lt;/P&gt;

&lt;P&gt;How can I do this at index time?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 18:41:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Newline-in-events/m-p/353079#M5630</guid>
      <dc:creator>arpit_arora</dc:creator>
      <dc:date>2018-04-23T18:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Newline in events</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Newline-in-events/m-p/353080#M5631</link>
      <description>&lt;P&gt;@arpit_arora, try to take your rex to &lt;CODE&gt;fields.conf&lt;/CODE&gt; for configuring multi-value fields using TOKENIZER: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/ConfigureSplunktoparsemulti-valuefields"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/ConfigureSplunktoparsemulti-valuefields&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 20:42:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Newline-in-events/m-p/353080#M5631</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-04-23T20:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Newline in events</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Newline-in-events/m-p/353081#M5632</link>
      <description>&lt;P&gt;Assuming when you say your can do the same at search time using &lt;CODE&gt;rex mode=sed&lt;/CODE&gt; option, you can do the same at index-time using SEDCMD option in the props.conf. See this for more details:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.3/Data/Anonymizedata"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.3/Data/Anonymizedata&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 20:56:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Newline-in-events/m-p/353081#M5632</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-23T20:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Newline in events</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Newline-in-events/m-p/353082#M5633</link>
      <description>&lt;P&gt;This is generally done in &lt;CODE&gt;props.conf&lt;/CODE&gt; on your indexers by setting &lt;CODE&gt;SHOULD_LINEMERGE = false&lt;/CODE&gt; (yes, I know that might seem wrong) and &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt; to a very carefully constructed RegEx that determines where to break them apart, for your sourcetype.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 20:59:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Newline-in-events/m-p/353082#M5633</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-04-23T20:59:07Z</dc:date>
    </item>
  </channel>
</rss>

