<?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: Showing multiline _raw data in a table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Showing-multiline-raw-data-in-a-table/m-p/12366#M993</link>
    <description>&lt;P&gt;Thankyou, this makes things clearer.   It would be great to have this added as an enhancement&lt;/P&gt;</description>
    <pubDate>Wed, 28 Apr 2010 15:18:39 GMT</pubDate>
    <dc:creator>Hazel</dc:creator>
    <dc:date>2010-04-28T15:18:39Z</dc:date>
    <item>
      <title>Showing multiline _raw data in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Showing-multiline-raw-data-in-a-table/m-p/12361#M988</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am rewriting this - hope it makes more sense.  I have config files, which I am passing into splunk as follows.&lt;/P&gt;

&lt;P&gt;The file is a list of comments (which I dont want) followed by stuff i do want that starts with the word sample, so i use this, split at sample, then delete anything that starts with a # (the comments)&lt;/P&gt;

&lt;PRE&gt;
[queueconfig]
CHECK_METHOD = entire_md5
SHOULD_LINEMERGE = true
BREAK_ONLY_BEFORE = ^sample
TRANSFORMS-emsThree = commentRemoval

[commentRemoval]
REGEX=^#
DEST_KEY = queue
FORMAT = nullQueue
&lt;/PRE&gt;

&lt;P&gt;You end up with an event, e.g&lt;/P&gt;

&lt;PRE&gt;
sample
sample1
queue1
topic1
&lt;/PRE&gt;

&lt;P&gt;What I want, is to now put this data into a multiline field, but it doesnt work.&lt;/P&gt;

&lt;P&gt;I have tried the following&lt;/P&gt;

&lt;PRE&gt;
[multiLineTopic] 
REGEX = (?m-s)(.*) 
MV_ADD = true FORMAT = config::$1 
&lt;/PRE&gt;

&lt;P&gt;This hangs, never returns &lt;/P&gt;

&lt;PRE&gt;
[multiLineTopic] 
REGEX = (?m-s)(.*) 
FORMAT = config::$1 
&lt;/PRE&gt;

&lt;P&gt;This just stores the first line of text from the event eg sample&lt;/P&gt;

&lt;PRE&gt;
[multiLineTopic] 
REGEX = (?s)(.*) 
MV_ADD = true 
FORMAT = config::$1 
&lt;/PRE&gt;

&lt;P&gt;This stores all lines, but in one single long line, no new line characters. eg sample sample1 queue1 ....&lt;/P&gt;

&lt;P&gt;I am looking to see a multilined field, like in the raw data.&lt;/P&gt;

&lt;P&gt;Hope this makes more sense now.  Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2010 22:05:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Showing-multiline-raw-data-in-a-table/m-p/12361#M988</guid>
      <dc:creator>Hazel</dc:creator>
      <dc:date>2010-04-27T22:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Showing multiline _raw data in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Showing-multiline-raw-data-in-a-table/m-p/12362#M989</link>
      <description>&lt;P&gt;I don't know what your field extractions look like, but you should use a multivalued field for each config line, then:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats list(config) by Application
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;A multivalue extraction might look in transforms.conf like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[config-lines]
REGEX = (?m-s)^(?&amp;lt;config&amp;gt;[^\V]*)$
MV_ADD = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Apr 2010 00:13:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Showing-multiline-raw-data-in-a-table/m-p/12362#M989</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-04-28T00:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Showing multiline _raw data in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Showing-multiline-raw-data-in-a-table/m-p/12363#M990</link>
      <description>&lt;P&gt;Hello. I have rewritten my question, now that I have tried to implement your transform, I see this is the best way, to get a multi line field - but i can't get it to work. Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2010 02:28:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Showing-multiline-raw-data-in-a-table/m-p/12363#M990</guid>
      <dc:creator>Hazel</dc:creator>
      <dc:date>2010-04-28T02:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Showing multiline _raw data in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Showing-multiline-raw-data-in-a-table/m-p/12364#M991</link>
      <description>&lt;P&gt;To clarify, there are 2 distinct items here: multi-line data, and a multi-value field.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;multi-line event&lt;/STRONG&gt;: this is a single event that contains multiple lines, which may contain some number of fields, ex: a Java stack trace&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;multi-value field&lt;/STRONG&gt;: this is a single field within an event that may contain more than one value, ex: &lt;CODE&gt;to_address=bob@example.com,joe@example.com,jane@example.com&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;The current table renderer that ships with Splunk 4.0+ will render multi-value fields on separate lines, but render a multi-line event as a single line.  Obviously the raw event renderer will always show multi-line events with line breaks preserved.&lt;/P&gt;

&lt;P&gt;If you want to render multi-line events in a table with line breaks preserved, you can add a CSS rule to the desired table (either via an &lt;CODE&gt;application.css&lt;/CODE&gt; or other custom CSS file).  In the meantime, I will file this as an enhancement request.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2010 07:41:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Showing-multiline-raw-data-in-a-table/m-p/12364#M991</guid>
      <dc:creator>Johnvey</dc:creator>
      <dc:date>2010-04-28T07:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Showing multiline _raw data in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Showing-multiline-raw-data-in-a-table/m-p/12365#M992</link>
      <description>&lt;P&gt;And what about the one I provided? It should do the same as the first one you tried that hangs, but I don't see why it would hang.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2010 07:51:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Showing-multiline-raw-data-in-a-table/m-p/12365#M992</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-04-28T07:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Showing multiline _raw data in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Showing-multiline-raw-data-in-a-table/m-p/12366#M993</link>
      <description>&lt;P&gt;Thankyou, this makes things clearer.   It would be great to have this added as an enhancement&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2010 15:18:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Showing-multiline-raw-data-in-a-table/m-p/12366#M993</guid>
      <dc:creator>Hazel</dc:creator>
      <dc:date>2010-04-28T15:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Showing multiline _raw data in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Showing-multiline-raw-data-in-a-table/m-p/12367#M994</link>
      <description>&lt;P&gt;Hello.  Not to worry, I was misunderstanding the answer - as pointed out above now, I can't have a multiline field.  However, I am now trying to implement your stats list which was working great on individual searches until I tried to join them, would you have any ideas? - &lt;A href="http://answers.splunk.com/questions/1912/using-multiple-stats-list"&gt;http://answers.splunk.com/questions/1912/using-multiple-stats-list&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2010 15:26:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Showing-multiline-raw-data-in-a-table/m-p/12367#M994</guid>
      <dc:creator>Hazel</dc:creator>
      <dc:date>2010-04-28T15:26:20Z</dc:date>
    </item>
  </channel>
</rss>

