<?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 not working in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-not-working/m-p/670137#M54837</link>
    <description>&lt;P&gt;Hello&lt;BR /&gt;I have this query :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="report" Computer_Name="*"  |chart dc(Category__Names_of_Patches) as totalNumberOfPatches by Computer_Name
| eval exposure_level = case(
    totalNumberOfPatches &amp;gt;= 3 AND totalNumberOfPatches &amp;lt;= 6, "Low Exposure",
    totalNumberOfPatches &amp;gt;= 7 AND totalNumberOfPatches &amp;lt;= 10, "Medium Exposure", 
    totalNumberOfPatches &amp;gt;= 11, "High Exposure", 
    totalNumberOfPatches == 2, "Compliant",
    totalNumberOfPatches == 1, "&amp;lt;not reported&amp;gt;",
    1=1,"other"
  )

| stats count(Computer_Name) as totalNumberOfPatches by exposure_level

| eval category=exposure_level&lt;/LI-CODE&gt;&lt;P&gt;Looks like I've lost the _time field on the way so when im trying to run timechart im getting no results&lt;/P&gt;</description>
    <pubDate>Wed, 29 Nov 2023 10:58:18 GMT</pubDate>
    <dc:creator>sarit_s</dc:creator>
    <dc:date>2023-11-29T10:58:18Z</dc:date>
    <item>
      <title>timechart not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-not-working/m-p/670137#M54837</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I have this query :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="report" Computer_Name="*"  |chart dc(Category__Names_of_Patches) as totalNumberOfPatches by Computer_Name
| eval exposure_level = case(
    totalNumberOfPatches &amp;gt;= 3 AND totalNumberOfPatches &amp;lt;= 6, "Low Exposure",
    totalNumberOfPatches &amp;gt;= 7 AND totalNumberOfPatches &amp;lt;= 10, "Medium Exposure", 
    totalNumberOfPatches &amp;gt;= 11, "High Exposure", 
    totalNumberOfPatches == 2, "Compliant",
    totalNumberOfPatches == 1, "&amp;lt;not reported&amp;gt;",
    1=1,"other"
  )

| stats count(Computer_Name) as totalNumberOfPatches by exposure_level

| eval category=exposure_level&lt;/LI-CODE&gt;&lt;P&gt;Looks like I've lost the _time field on the way so when im trying to run timechart im getting no results&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 10:58:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-not-working/m-p/670137#M54837</guid>
      <dc:creator>sarit_s</dc:creator>
      <dc:date>2023-11-29T10:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: timechart not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-not-working/m-p/670140#M54838</link>
      <description>&lt;P&gt;Correct, after the stats command you will only have&amp;nbsp;totalNumberOfPatches and exposure_level. If you need _time after this point it should be added to the by clause, however, you may wish to bin it first, or replace the stats command with timechart&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 11:06:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-not-working/m-p/670140#M54838</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-29T11:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: timechart not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-not-working/m-p/670141#M54839</link>
      <description>&lt;P&gt;Well, ive changed it to this :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval category=exposure_level
| timechart span=1d count(Computer_Name) as totalNumberOfPatches by category&lt;/LI-CODE&gt;&lt;P&gt;but still no results&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 11:09:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-not-working/m-p/670141#M54839</guid>
      <dc:creator>sarit_s</dc:creator>
      <dc:date>2023-11-29T11:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: timechart not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-not-working/m-p/670153#M54840</link>
      <description>&lt;P&gt;Sorry, I missed the chart command on your first line. This is the command which is removing the timestamps.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 11:44:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-not-working/m-p/670153#M54840</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-29T11:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: timechart not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-not-working/m-p/670155#M54841</link>
      <description>&lt;P&gt;so what sould i do ? replacing it with timechart returns also no results&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 11:48:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-not-working/m-p/670155#M54841</guid>
      <dc:creator>sarit_s</dc:creator>
      <dc:date>2023-11-29T11:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: timechart not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-not-working/m-p/670157#M54842</link>
      <description>&lt;P&gt;solved it by changing to stats. thanks&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 11:49:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-not-working/m-p/670157#M54842</guid>
      <dc:creator>sarit_s</dc:creator>
      <dc:date>2023-11-29T11:49:23Z</dc:date>
    </item>
  </channel>
</rss>

