<?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 create a table with one column will display some items on one field and another column to display all other items from the same field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/create-a-table-with-one-column-will-display-some-items-on-one/m-p/489249#M136671</link>
    <description>&lt;P&gt;I have firewall logs where the field  "user" has multiple user id's including guest and unknown. I need to count all the events with user guest and unknown then create a table where one column will provide the result, name the column as unauthenticated . The other column should display all other users with the field name authenticated. Each row should also display the firewall name.&lt;/P&gt;

&lt;P&gt;the table should display like this.&lt;BR /&gt;
firewall    |authenticated|unauthenticated&lt;BR /&gt;
firewall1 | 100 | 35 &lt;BR /&gt;
firewall2  | 75   | 20&lt;BR /&gt;
firewall3   | 65   |11&lt;/P&gt;

&lt;P&gt;right now i can do this by doing 2 searches but it is displayed on 2 tables&lt;/P&gt;

&lt;P&gt;ex. index=fw sourcetype=auth user=unknown AND user=guest | stats count by firewall&lt;BR /&gt;
index=fw sourcetype=auth user!=unknown AND user!=guest | stats count by firewall&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jan 2020 11:45:04 GMT</pubDate>
    <dc:creator>d4rk_sp1d3r</dc:creator>
    <dc:date>2020-01-20T11:45:04Z</dc:date>
    <item>
      <title>create a table with one column will display some items on one field and another column to display all other items from the same field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/create-a-table-with-one-column-will-display-some-items-on-one/m-p/489249#M136671</link>
      <description>&lt;P&gt;I have firewall logs where the field  "user" has multiple user id's including guest and unknown. I need to count all the events with user guest and unknown then create a table where one column will provide the result, name the column as unauthenticated . The other column should display all other users with the field name authenticated. Each row should also display the firewall name.&lt;/P&gt;

&lt;P&gt;the table should display like this.&lt;BR /&gt;
firewall    |authenticated|unauthenticated&lt;BR /&gt;
firewall1 | 100 | 35 &lt;BR /&gt;
firewall2  | 75   | 20&lt;BR /&gt;
firewall3   | 65   |11&lt;/P&gt;

&lt;P&gt;right now i can do this by doing 2 searches but it is displayed on 2 tables&lt;/P&gt;

&lt;P&gt;ex. index=fw sourcetype=auth user=unknown AND user=guest | stats count by firewall&lt;BR /&gt;
index=fw sourcetype=auth user!=unknown AND user!=guest | stats count by firewall&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 11:45:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/create-a-table-with-one-column-will-display-some-items-on-one/m-p/489249#M136671</guid>
      <dc:creator>d4rk_sp1d3r</dc:creator>
      <dc:date>2020-01-20T11:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: create a table with one column will display some items on one field and another column to display all other items from the same field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/create-a-table-with-one-column-will-display-some-items-on-one/m-p/489250#M136672</link>
      <description>&lt;P&gt;The first query might have a typo in it.  It's not possible for the 'user' field to be both "unknown" and "guest" at the same time.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 13:55:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/create-a-table-with-one-column-will-display-some-items-on-one/m-p/489250#M136672</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-01-20T13:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: create a table with one column will display some items on one field and another column to display all other items from the same field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/create-a-table-with-one-column-will-display-some-items-on-one/m-p/489251#M136673</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=fw sourcetype=auth | eval type=if(user="unknown" OR user="guest", "unauthenticated", "authenticated") | chart count by firewall type
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Jan 2020 17:25:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/create-a-table-with-one-column-will-display-some-items-on-one/m-p/489251#M136673</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-01-20T17:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: create a table with one column will display some items on one field and another column to display all other items from the same field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/create-a-table-with-one-column-will-display-some-items-on-one/m-p/489252#M136674</link>
      <description>&lt;P&gt;that's not exactly the search i used so the spelling is not a concern. just want everyone to understand the question. the field user has different user id's in it. guest, unknown, user1, user2, so on and so fourth.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 03:03:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/create-a-table-with-one-column-will-display-some-items-on-one/m-p/489252#M136674</guid>
      <dc:creator>d4rk_sp1d3r</dc:creator>
      <dc:date>2020-01-21T03:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: create a table with one column will display some items on one field and another column to display all other items from the same field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/create-a-table-with-one-column-will-display-some-items-on-one/m-p/489253#M136675</link>
      <description>&lt;P&gt;this worked for me. thanks alot!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 03:04:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/create-a-table-with-one-column-will-display-some-items-on-one/m-p/489253#M136675</guid>
      <dc:creator>d4rk_sp1d3r</dc:creator>
      <dc:date>2020-01-21T03:04:45Z</dc:date>
    </item>
  </channel>
</rss>

