<?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: Timechart by 3 dimensions... again in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-timechart-in-3-directions/m-p/641566#M222251</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/239680"&gt;@SquarePeg&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you cannot put two fields in the BY clause of timechart.&lt;/P&gt;&lt;P&gt;But you can use the bin command to discretize _time bins and then use a stats count BY _time and the other keys:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| bin _time span=1h
| stats count BY _time key1 key2&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2023 10:42:55 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-04-27T10:42:55Z</dc:date>
    <item>
      <title>How to use timechart in 3 directions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-timechart-in-3-directions/m-p/641559#M222246</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;
&lt;P&gt;I know that other people have asked similar questions but I have had no success in replicating their use cases. I am trying to display a timechart with lines showing sales for multiple stores, broken down by region and then city.&lt;/P&gt;
&lt;P&gt;For example, Region A, has Cities A, B and C, Region B also has Cities A, B and C but inside each of those cities, there are between 2 and 5 stores. So when we click on a selector at the top, to select Region A for example, I need to show a trellis, broken out by city, showing a timechart with lines representing the sales for each store over the past say 6 months.&lt;/P&gt;
&lt;P&gt;Hopefully I am explaining this well enough&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 13:41:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-timechart-in-3-directions/m-p/641559#M222246</guid>
      <dc:creator>SquarePeg</dc:creator>
      <dc:date>2023-04-27T13:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart by 3 dimensions... again</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-timechart-in-3-directions/m-p/641566#M222251</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/239680"&gt;@SquarePeg&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you cannot put two fields in the BY clause of timechart.&lt;/P&gt;&lt;P&gt;But you can use the bin command to discretize _time bins and then use a stats count BY _time and the other keys:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| bin _time span=1h
| stats count BY _time key1 key2&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 10:42:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-timechart-in-3-directions/m-p/641566#M222251</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-04-27T10:42:55Z</dc:date>
    </item>
  </channel>
</rss>

