<?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: Need help with Timechart command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-Timechart-command/m-p/546382#M154891</link>
    <description>&lt;P&gt;Didnt work for me, but thanks for the help!&lt;/P&gt;</description>
    <pubDate>Thu, 01 Apr 2021 14:51:37 GMT</pubDate>
    <dc:creator>Anthonylucian</dc:creator>
    <dc:date>2021-04-01T14:51:37Z</dc:date>
    <item>
      <title>Need help with Timechart command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-Timechart-command/m-p/546375#M154885</link>
      <description>&lt;P&gt;Hey all, so im trying to generate a time chart. If i perform the the stats command to validate the number of state I get the number im looking for with this query.&lt;/P&gt;&lt;P&gt;|stats latest(*) AS * by ip, pluginID&lt;BR /&gt;| dedup macAddress, Datacenter&lt;BR /&gt;| stats count(state) as Fixed by cve&lt;/P&gt;&lt;P&gt;So now I wanted to transform the count of state over to a timechart but when I do this I get no data at all.&lt;/P&gt;&lt;P&gt;|stats latest(*) AS * by ip, pluginID&lt;BR /&gt;| dedup macAddress, Datacenter&lt;BR /&gt;| timechart count(state) as Fixed by cve useother=false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im pretty new to the timechart command, any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 14:34:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-Timechart-command/m-p/546375#M154885</guid>
      <dc:creator>Anthonylucian</dc:creator>
      <dc:date>2021-04-01T14:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Timechart command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-Timechart-command/m-p/546376#M154886</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233062"&gt;@Anthonylucian&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;timechart need _time field to group by events. Your stats command does not output _time field on result set, that is why timechart cannot group and show the events. You can try below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|stats latest(_time) as _time latest(*) AS * by ip, pluginID
| dedup macAddress, Datacenter
| timechart count(state) as Fixed by cve useother=false&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 01 Apr 2021 14:40:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-Timechart-command/m-p/546376#M154886</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-04-01T14:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Timechart command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-Timechart-command/m-p/546377#M154887</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233062"&gt;@Anthonylucian&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when you use stats comand you report only the fields reported on your search:&lt;/P&gt;&lt;P&gt;try to put state on stats comand like this&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;|stats latest(*) AS * by ip, pluginID,state,Fixed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| dedup macAddress, Datacenter&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| timechart count(state) as Fixed by cve useother=false&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or you can try like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;|stats latest(*) AS * values(state) as state, values(Fixed) as Fixed by ip, pluginID&lt;BR /&gt;| dedup macAddress, Datacenter&lt;BR /&gt;| timechart count(state) as Fixed by cve useother=false&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 14:40:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-Timechart-command/m-p/546377#M154887</guid>
      <dc:creator>aasabatini</dc:creator>
      <dc:date>2021-04-01T14:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Timechart command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-Timechart-command/m-p/546378#M154888</link>
      <description>&lt;P&gt;timechart needs the _time field to work with but the initial stats command does not pass this through&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 14:48:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-Timechart-command/m-p/546378#M154888</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-01T14:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Timechart command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-Timechart-command/m-p/546380#M154889</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;You all are always so fast to reply!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 14:50:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-Timechart-command/m-p/546380#M154889</guid>
      <dc:creator>Anthonylucian</dc:creator>
      <dc:date>2021-04-01T14:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Timechart command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-Timechart-command/m-p/546382#M154891</link>
      <description>&lt;P&gt;Didnt work for me, but thanks for the help!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 14:51:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-Timechart-command/m-p/546382#M154891</guid>
      <dc:creator>Anthonylucian</dc:creator>
      <dc:date>2021-04-01T14:51:37Z</dc:date>
    </item>
  </channel>
</rss>

