<?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 Flatten transaction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Flatten-transaction/m-p/83610#M21298</link>
    <description>&lt;P&gt;Greetings everyone. This is hopefully a pretty simple question - is there a way to "flatten" transactions? After it runs, you end up with a transaction which is a multiline event. What I'd like to do is flatten the lines into a single line of text. For items where there are multiple matching lines, compress them into a single line which is semicolon delimited or something. Any ideas?&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2011 16:30:09 GMT</pubDate>
    <dc:creator>msarro</dc:creator>
    <dc:date>2011-09-29T16:30:09Z</dc:date>
    <item>
      <title>Flatten transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Flatten-transaction/m-p/83610#M21298</link>
      <description>&lt;P&gt;Greetings everyone. This is hopefully a pretty simple question - is there a way to "flatten" transactions? After it runs, you end up with a transaction which is a multiline event. What I'd like to do is flatten the lines into a single line of text. For items where there are multiple matching lines, compress them into a single line which is semicolon delimited or something. Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2011 16:30:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Flatten-transaction/m-p/83610#M21298</guid>
      <dc:creator>msarro</dc:creator>
      <dc:date>2011-09-29T16:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Flatten transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Flatten-transaction/m-p/83611#M21299</link>
      <description>&lt;P&gt;You could replace newline characters using &lt;CODE&gt;rex&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yoursearch&amp;gt; | rex field=_raw mode=sed "s/[\r\n]//g"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The default output in the search app will still wrap lines though, so if you want everything unwrapped on one single line one option would be to use &lt;CODE&gt;table&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yoursearch&amp;gt; | eval eventtext=_raw | table _time eventtext
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(using _raw directly in table does not work).&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2011 16:42:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Flatten-transaction/m-p/83611#M21299</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-09-29T16:42:19Z</dc:date>
    </item>
  </channel>
</rss>

