<?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: Showing rows and columns when they do not exist in the event data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Showing-rows-and-columns-when-they-do-not-exist-in-the-event/m-p/149478#M41819</link>
    <description>&lt;P&gt;I've figured this out , it was a lot of fun &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;|inputlookup Offices.csv  | join type=left max=0 [|inputlookup Categories.csv ] | join type=left OFFICE_DESC, Category [search index=incident_logs_dev  | stats count by  OFFICE_DESC Category] | fillnull value=0 | xyseries OFFICE_DESC  Category count&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 15:53:37 GMT</pubDate>
    <dc:creator>aelliott</dc:creator>
    <dc:date>2020-09-28T15:53:37Z</dc:date>
    <item>
      <title>Showing rows and columns when they do not exist in the event data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Showing-rows-and-columns-when-they-do-not-exist-in-the-event/m-p/149477#M41818</link>
      <description>&lt;P&gt;I have a spreadsheet with a list of locations.&lt;BR /&gt;
I have a list of Categories.&lt;BR /&gt;
I have events of incidents with an office location on them that is the same as the office location on the spreadsheet,and categories that also are the same as the spreadsheet.&lt;/P&gt;

&lt;P&gt;Data:&lt;BR /&gt;
Incident1 Office A Category A&lt;BR /&gt;
Incident2 Office A Category A&lt;BR /&gt;
Incident3 Office B Category B&lt;BR /&gt;
Incident4 Office D Category B&lt;/P&gt;

&lt;P&gt;Spreadsheet Example:&lt;BR /&gt;
Office A&lt;BR /&gt;
Office B &lt;BR /&gt;
Office C&lt;BR /&gt;
Office D&lt;/P&gt;

&lt;P&gt;I'm looking to make a search that has this as the results:&lt;BR /&gt;
         Category A   Category B   Category C&lt;BR /&gt;
Office A     2           0           0&lt;BR /&gt;
Office B     0           1           0&lt;BR /&gt;
Office C     0           0           0&lt;BR /&gt;
Office D     0           1           0&lt;/P&gt;

&lt;P&gt;I was thinking of importing the list of Categories and locations as events and going from there, but the real issue here is how do I get Office C to show up as well as Category C in this scenario, when there are no incidents for them.&lt;/P&gt;

&lt;P&gt;Here is what I have currently, but it does not show Category C or Office C as they do not exist in the data.&lt;BR /&gt;
    index=myIndex  | stats count by Office Category | xyseries Office Category count | fillnull value=0 &lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2014 19:30:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Showing-rows-and-columns-when-they-do-not-exist-in-the-event/m-p/149477#M41818</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2014-02-13T19:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Showing rows and columns when they do not exist in the event data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Showing-rows-and-columns-when-they-do-not-exist-in-the-event/m-p/149478#M41819</link>
      <description>&lt;P&gt;I've figured this out , it was a lot of fun &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;|inputlookup Offices.csv  | join type=left max=0 [|inputlookup Categories.csv ] | join type=left OFFICE_DESC, Category [search index=incident_logs_dev  | stats count by  OFFICE_DESC Category] | fillnull value=0 | xyseries OFFICE_DESC  Category count&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:53:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Showing-rows-and-columns-when-they-do-not-exist-in-the-event/m-p/149478#M41819</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2020-09-28T15:53:37Z</dc:date>
    </item>
  </channel>
</rss>

