<?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 chart with where in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/chart-with-where/m-p/686614#M234201</link>
    <description>&lt;P&gt;Please help me on the below items:&lt;/P&gt;&lt;P&gt;#1)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| chart count(WriteType) over Collection by WriteType  | sort Collection&lt;/LI-CODE&gt;&lt;P&gt;for above query&amp;nbsp; can we add conditon as below:&amp;nbsp; (i am facing issue here)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| chart count(WriteType) over Collection by WriteType |where c in("test","qa")  | sort Collection&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;#2):&lt;/P&gt;&lt;P&gt;can we add one more field after WriteType as below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| chart count(WriteType) over Collection by WriteType, c |where c in("test","qa")&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 06 May 2024 18:22:42 GMT</pubDate>
    <dc:creator>Jasmine</dc:creator>
    <dc:date>2024-05-06T18:22:42Z</dc:date>
    <item>
      <title>chart with where</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-with-where/m-p/686614#M234201</link>
      <description>&lt;P&gt;Please help me on the below items:&lt;/P&gt;&lt;P&gt;#1)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| chart count(WriteType) over Collection by WriteType  | sort Collection&lt;/LI-CODE&gt;&lt;P&gt;for above query&amp;nbsp; can we add conditon as below:&amp;nbsp; (i am facing issue here)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| chart count(WriteType) over Collection by WriteType |where c in("test","qa")  | sort Collection&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;#2):&lt;/P&gt;&lt;P&gt;can we add one more field after WriteType as below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| chart count(WriteType) over Collection by WriteType, c |where c in("test","qa")&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 May 2024 18:22:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-with-where/m-p/686614#M234201</guid>
      <dc:creator>Jasmine</dc:creator>
      <dc:date>2024-05-06T18:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: chart with where</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-with-where/m-p/686625#M234203</link>
      <description>&lt;P&gt;1) c doesn't exist unless it is a value in WriteType and even then it will contain a count not "test" or "qa"&lt;/P&gt;&lt;P&gt;2) No, you can only have two fields with chart.&lt;/P&gt;&lt;P&gt;Perhaps it would be better if you explained what you are trying to do, and share some representative anonymised sample events? (I may have said that before a few times!)&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 22:02:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-with-where/m-p/686625#M234203</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-06T22:02:35Z</dc:date>
    </item>
  </channel>
</rss>

