<?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 to create a table that indicates a column with the sourcetype? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-indicates-a-column-with-the/m-p/639400#M221540</link>
    <description>&lt;P&gt;Just add "sourcetype" to the &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index* "user"="user1*" OR "user"="user2*" 
| stats count by user, sourcetype&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Apr 2023 17:31:49 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-04-10T17:31:49Z</dc:date>
    <item>
      <title>How to create a table that indicates a column with the sourcetype?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-indicates-a-column-with-the/m-p/639398#M221539</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I am currently trying to create a table that shows the count of activity by user as well as the occurrence in which sourcetype:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What I am trying to achieve&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;Users&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;Sourcetype&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;User 1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;source 1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;User 2&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;source 2&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Here is my base search at the moment:&lt;/P&gt;&lt;P&gt;index=index* "user"="user1*" OR "user"="user2*" | stats count by user | eval input_type="Count"| xyseries input_type count&lt;BR /&gt;&lt;BR /&gt;Right now, it does show me the count of the user activity but I'm not sure how to add the sourcetype to the search to create a table view.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 17:29:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-indicates-a-column-with-the/m-p/639398#M221539</guid>
      <dc:creator>greentomatoes</dc:creator>
      <dc:date>2023-04-10T17:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table that indicates a column with the sourcetype?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-indicates-a-column-with-the/m-p/639400#M221540</link>
      <description>&lt;P&gt;Just add "sourcetype" to the &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index* "user"="user1*" OR "user"="user2*" 
| stats count by user, sourcetype&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 17:31:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-indicates-a-column-with-the/m-p/639400#M221540</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-04-10T17:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table that indicates a column with the sourcetype?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-indicates-a-column-with-the/m-p/639402#M221541</link>
      <description>&lt;P&gt;Thank you! I didn't realize how simple the solution was haha&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 17:38:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-that-indicates-a-column-with-the/m-p/639402#M221541</guid>
      <dc:creator>greentomatoes</dc:creator>
      <dc:date>2023-04-10T17:38:14Z</dc:date>
    </item>
  </channel>
</rss>

