<?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 timechart - how to work with timechart and stats count by in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-how-to-work-with-timechart-and-stats-count-by/m-p/602162#M49452</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi guys, i need some help.&lt;BR /&gt;&lt;BR /&gt;I'm trying to make a time chart to compare how many times my system gets restarted comparing today with 7 days ago.&lt;BR /&gt;&lt;BR /&gt;I have this healthcheck log and the&amp;nbsp;first log is when the user logs in for the first time and the next is the times that the user restarts my app.&lt;BR /&gt;&lt;BR /&gt;with the following query works just fine the problem here is that i get the results from (initialization + restart) but i want the result just from the restart.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myIndex Title=Healthcheck earliest=-10d@d latest=@d
| timechart span=1h count
| timewrap d series=short
| fields _time s0 s7
| rename s0 as Today, s7 as "7 days ago"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;with this other query i have exactly the restart from each user but i cant make it work with time chart.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myIndex Title=Healthcheck 
| stats count by Data.Ip
| eval count = count - 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;if it was confused i posted this other question explaining my scenario:&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-to-change-the-result-of-my-stats-count/td-p/600364" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Splunk-Search/How-to-change-the-result-of-my-stats-count/td-p/600364&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2022 22:24:08 GMT</pubDate>
    <dc:creator>juliop3p</dc:creator>
    <dc:date>2022-06-16T22:24:08Z</dc:date>
    <item>
      <title>timechart - how to work with timechart and stats count by</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-how-to-work-with-timechart-and-stats-count-by/m-p/602162#M49452</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi guys, i need some help.&lt;BR /&gt;&lt;BR /&gt;I'm trying to make a time chart to compare how many times my system gets restarted comparing today with 7 days ago.&lt;BR /&gt;&lt;BR /&gt;I have this healthcheck log and the&amp;nbsp;first log is when the user logs in for the first time and the next is the times that the user restarts my app.&lt;BR /&gt;&lt;BR /&gt;with the following query works just fine the problem here is that i get the results from (initialization + restart) but i want the result just from the restart.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myIndex Title=Healthcheck earliest=-10d@d latest=@d
| timechart span=1h count
| timewrap d series=short
| fields _time s0 s7
| rename s0 as Today, s7 as "7 days ago"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;with this other query i have exactly the restart from each user but i cant make it work with time chart.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myIndex Title=Healthcheck 
| stats count by Data.Ip
| eval count = count - 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;if it was confused i posted this other question explaining my scenario:&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-to-change-the-result-of-my-stats-count/td-p/600364" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Splunk-Search/How-to-change-the-result-of-my-stats-count/td-p/600364&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 22:24:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-how-to-work-with-timechart-and-stats-count-by/m-p/602162#M49452</guid>
      <dc:creator>juliop3p</dc:creator>
      <dc:date>2022-06-16T22:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: timechart - how to work with timechart and stats count by</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-how-to-work-with-timechart-and-stats-count-by/m-p/602168#M49455</link>
      <description>&lt;P&gt;Can you identify which of the events in the index are initialisation events and which are restart events?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 03:28:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-how-to-work-with-timechart-and-stats-count-by/m-p/602168#M49455</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-17T03:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: timechart - how to work with timechart and stats count by</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-how-to-work-with-timechart-and-stats-count-by/m-p/602170#M49456</link>
      <description>&lt;P&gt;i can't, i just know that the first log from each hostname is the initialisation.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 04:16:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-how-to-work-with-timechart-and-stats-count-by/m-p/602170#M49456</guid>
      <dc:creator>juliop3p</dc:creator>
      <dc:date>2022-06-17T04:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: timechart - how to work with timechart and stats count by</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-how-to-work-with-timechart-and-stats-count-by/m-p/602178#M49459</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/246438"&gt;@juliop3p&lt;/a&gt;&amp;nbsp;- Kindly post sample events, that will make it easier to understand.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 05:31:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-how-to-work-with-timechart-and-stats-count-by/m-p/602178#M49459</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-06-17T05:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: timechart - how to work with timechart and stats count by</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-how-to-work-with-timechart-and-stats-count-by/m-p/602179#M49460</link>
      <description>&lt;P&gt;Would that be the first log for each host ever, no matter what the time frame for the search, e.g. only looking at yesterday? Or, the first log for each host each day, no matter what the time frame for the search, e.g. only looking at yesterday afternoon?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 05:35:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-how-to-work-with-timechart-and-stats-count-by/m-p/602179#M49460</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-17T05:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: timechart - how to work with timechart and stats count by</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-how-to-work-with-timechart-and-stats-count-by/m-p/602184#M49462</link>
      <description>&lt;P&gt;every time a user open the app generate a healthcheck log like that:&lt;BR /&gt;&lt;BR /&gt;Data&lt;BR /&gt;&amp;nbsp; - HostName: 1234&lt;BR /&gt;&amp;nbsp; - AppVersion: 1.0.0&lt;BR /&gt;&amp;nbsp; - SO: W10&lt;BR /&gt;&lt;BR /&gt;the same user (HostName) can have like 3 of this logs in one day but i want to track just reinitialisation, so in this example i have 3 logs:&lt;BR /&gt;&lt;BR /&gt;1 log :&amp;nbsp; initialisation&lt;BR /&gt;2 logs: reinitialisation&lt;BR /&gt;&lt;BR /&gt;and i want to have a timechart view so i can track the total reinitialisation by hour comparing with 7 day ago&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 05:50:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-how-to-work-with-timechart-and-stats-count-by/m-p/602184#M49462</guid>
      <dc:creator>juliop3p</dc:creator>
      <dc:date>2022-06-17T05:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: timechart - how to work with timechart and stats count by</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-how-to-work-with-timechart-and-stats-count-by/m-p/602186#M49463</link>
      <description>&lt;P&gt;What happens if the user closes the app and re-opens it on the same day? Can you distinguish this as a new initialisation?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 06:04:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-how-to-work-with-timechart-and-stats-count-by/m-p/602186#M49463</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-17T06:04:49Z</dc:date>
    </item>
  </channel>
</rss>

