<?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 How to display events in table format when same value appears multiple times? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-events-in-table-format-when-same-value-appears/m-p/464144#M130820</link>
    <description>&lt;P&gt;Is there a way to display events in a table when the same value appears multiple times with other values?&lt;BR /&gt;
I am looking for user accounts that appear on two or more systems.&lt;/P&gt;

&lt;P&gt;The following is a list of records:&lt;/P&gt;

&lt;P&gt;field1 | field2  | field3&lt;BR /&gt;
 &lt;STRONG&gt;sys1   | user1&lt;/STRONG&gt;  | somevalue1 &amp;lt;&amp;lt;-- Want to grab this row&lt;BR /&gt;
 sys2   | user2  | somevalue2&lt;BR /&gt;
 sys2   | user2  | somevalue3&lt;BR /&gt;
 sys2   | user2  | somevalue4&lt;BR /&gt;
 &lt;STRONG&gt;sys2   | user1&lt;/STRONG&gt;  | somevalue2  &amp;lt;&amp;lt;-- Want to grab this row&lt;/P&gt;

&lt;P&gt;I have been trying different queries based off of the follow but I cant seem to get the correct syntax. I can get a count on field 1 and/or field 2, but I am not able to pull just those events listed above and the attributes accompanying (field3, field4, etc.) the events.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;1.&lt;/CODE&gt; index="myindex"&lt;BR /&gt;
&lt;CODE&gt;2.&lt;/CODE&gt; | stats count by field1 field2&lt;BR /&gt;
&lt;CODE&gt;3.&lt;/CODE&gt; | where count &amp;gt; 1&lt;BR /&gt;
&lt;CODE&gt;4.&lt;/CODE&gt; | table count field1 field2 field3 &lt;BR /&gt;
&lt;CODE&gt;5.&lt;/CODE&gt; | sort - count&lt;/P&gt;</description>
    <pubDate>Fri, 22 May 2020 21:07:22 GMT</pubDate>
    <dc:creator>rkeq0515</dc:creator>
    <dc:date>2020-05-22T21:07:22Z</dc:date>
    <item>
      <title>How to display events in table format when same value appears multiple times?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-events-in-table-format-when-same-value-appears/m-p/464144#M130820</link>
      <description>&lt;P&gt;Is there a way to display events in a table when the same value appears multiple times with other values?&lt;BR /&gt;
I am looking for user accounts that appear on two or more systems.&lt;/P&gt;

&lt;P&gt;The following is a list of records:&lt;/P&gt;

&lt;P&gt;field1 | field2  | field3&lt;BR /&gt;
 &lt;STRONG&gt;sys1   | user1&lt;/STRONG&gt;  | somevalue1 &amp;lt;&amp;lt;-- Want to grab this row&lt;BR /&gt;
 sys2   | user2  | somevalue2&lt;BR /&gt;
 sys2   | user2  | somevalue3&lt;BR /&gt;
 sys2   | user2  | somevalue4&lt;BR /&gt;
 &lt;STRONG&gt;sys2   | user1&lt;/STRONG&gt;  | somevalue2  &amp;lt;&amp;lt;-- Want to grab this row&lt;/P&gt;

&lt;P&gt;I have been trying different queries based off of the follow but I cant seem to get the correct syntax. I can get a count on field 1 and/or field 2, but I am not able to pull just those events listed above and the attributes accompanying (field3, field4, etc.) the events.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;1.&lt;/CODE&gt; index="myindex"&lt;BR /&gt;
&lt;CODE&gt;2.&lt;/CODE&gt; | stats count by field1 field2&lt;BR /&gt;
&lt;CODE&gt;3.&lt;/CODE&gt; | where count &amp;gt; 1&lt;BR /&gt;
&lt;CODE&gt;4.&lt;/CODE&gt; | table count field1 field2 field3 &lt;BR /&gt;
&lt;CODE&gt;5.&lt;/CODE&gt; | sort - count&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 21:07:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-events-in-table-format-when-same-value-appears/m-p/464144#M130820</guid>
      <dc:creator>rkeq0515</dc:creator>
      <dc:date>2020-05-22T21:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to display events in table format when same value appears multiple times?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-events-in-table-format-when-same-value-appears/m-p/464145#M130821</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; index="myindex"
| eventstats dc(field1) as counts by field2
| where counts &amp;gt; 1
| table as_you_like
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How about this?&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 00:09:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-events-in-table-format-when-same-value-appears/m-p/464145#M130821</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-23T00:09:08Z</dc:date>
    </item>
  </channel>
</rss>

