<?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 can you display results from 2 contrasting text searches in 1 table with no designated key pairs? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-you-display-results-from-2-contrasting-text-searches-in/m-p/241097#M71702</link>
    <description>&lt;P&gt;Thanks for the response! Really appreciate it!&lt;BR /&gt;
That got me what I needed...&lt;/P&gt;

&lt;P&gt;For anyone else who happens apon this string, I had to make two changes to get it to work&lt;BR /&gt;
1) had to add &lt;CODE&gt;search&lt;/CODE&gt; after the &lt;CODE&gt;appendcols [&lt;/CODE&gt;&lt;BR /&gt;
2) had to move the &lt;CODE&gt;| fields - count&lt;/CODE&gt; to OUTSIDE of the &lt;CODE&gt;]&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;So the final serach looked like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=ServerNumber1 sourcetype=log adventure NOT "Buck" | rename uniqueid as item1 | stats count by item1 | fields - count | appendcols [search host=ServerNumber1 sourcetype=log "Buck" | rename uniqueid as item2 | stats count by item2] | fields - count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 30 Jun 2016 00:40:20 GMT</pubDate>
    <dc:creator>Adam_Berliner_M</dc:creator>
    <dc:date>2016-06-30T00:40:20Z</dc:date>
    <item>
      <title>How can you display results from 2 contrasting text searches in 1 table with no designated key pairs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-you-display-results-from-2-contrasting-text-searches-in/m-p/241095#M71700</link>
      <description>&lt;P&gt;Afternoon!&lt;/P&gt;

&lt;P&gt;Hope this isn't too basic of a question here, but I've been striking out on finding a similar search to use as an example.&lt;BR /&gt;
I'm basically trying to parse 2 separate results out of the same log entry and display them in a single table.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Search 1:&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=ServerNumber1 sourcetype=log adventure NOT "Buck" | rename uniqueid as item1 | dedup item1 | table item1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Search 2:&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=ServerNumber1 sourcetype=log "Buck" | rename uniqueid as item2 | dedup item2 | table item2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm trying to figure out how to get item1 and item2 in to the same table in separate columns.&lt;BR /&gt;
Any help would be appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 23:15:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-you-display-results-from-2-contrasting-text-searches-in/m-p/241095#M71700</guid>
      <dc:creator>Adam_Berliner_M</dc:creator>
      <dc:date>2016-06-29T23:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can you display results from 2 contrasting text searches in 1 table with no designated key pairs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-you-display-results-from-2-contrasting-text-searches-in/m-p/241096#M71701</link>
      <description>&lt;P&gt;How do you want the final display? Item1 &amp;amp; Item2 as different columns in your table. See if this gives you what your are looking for&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=ServerNumber1 sourcetype=log adventure NOT "Buck" | rename uniqueid as item1 | stats count by item1 | fields - count | appendcols [ host=ServerNumber1 sourcetype=log "Buck" | rename uniqueid as item2 | stats count by item2 | fields - count]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jun 2016 23:46:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-you-display-results-from-2-contrasting-text-searches-in/m-p/241096#M71701</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-06-29T23:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can you display results from 2 contrasting text searches in 1 table with no designated key pairs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-you-display-results-from-2-contrasting-text-searches-in/m-p/241097#M71702</link>
      <description>&lt;P&gt;Thanks for the response! Really appreciate it!&lt;BR /&gt;
That got me what I needed...&lt;/P&gt;

&lt;P&gt;For anyone else who happens apon this string, I had to make two changes to get it to work&lt;BR /&gt;
1) had to add &lt;CODE&gt;search&lt;/CODE&gt; after the &lt;CODE&gt;appendcols [&lt;/CODE&gt;&lt;BR /&gt;
2) had to move the &lt;CODE&gt;| fields - count&lt;/CODE&gt; to OUTSIDE of the &lt;CODE&gt;]&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;So the final serach looked like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=ServerNumber1 sourcetype=log adventure NOT "Buck" | rename uniqueid as item1 | stats count by item1 | fields - count | appendcols [search host=ServerNumber1 sourcetype=log "Buck" | rename uniqueid as item2 | stats count by item2] | fields - count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Jun 2016 00:40:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-you-display-results-from-2-contrasting-text-searches-in/m-p/241097#M71702</guid>
      <dc:creator>Adam_Berliner_M</dc:creator>
      <dc:date>2016-06-30T00:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can you display results from 2 contrasting text searches in 1 table with no designated key pairs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-you-display-results-from-2-contrasting-text-searches-in/m-p/241098#M71703</link>
      <description>&lt;P&gt;What should I do if i want to reduce item2 from item1 and after that see the results as a table?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 12:40:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-you-display-results-from-2-contrasting-text-searches-in/m-p/241098#M71703</guid>
      <dc:creator>rafasalo</dc:creator>
      <dc:date>2016-09-08T12:40:58Z</dc:date>
    </item>
  </channel>
</rss>

