<?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 reporting zeros in counts in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-reporting-zeros-in-counts/m-p/676111#M55357</link>
    <description>&lt;P&gt;Does adding | addinfo help you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247272"&gt;@Mindy_McTiernan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/i-cant-make-my-time-range-picker-pick.html" target="_blank"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/i-cant-make-my-time-range-picker-pick.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval unixtime_Opened_At
| eval _time=unixtime_Opened_At
| addinfo
| timechart ...&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 31 Jan 2024 16:32:33 GMT</pubDate>
    <dc:creator>burwell</dc:creator>
    <dc:date>2024-01-31T16:32:33Z</dc:date>
    <item>
      <title>Timechart reporting zeros in counts</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-reporting-zeros-in-counts/m-p/675300#M55296</link>
      <description>&lt;P&gt;I am trying to use the following search to make a timechart on security incident sources, but Splunk is reporting zeros for all the counts which I can confirm is NOT accurate at all. I think the issue is because I need to use a different time field for the timeline. Can someone assist me in making this chart work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=sir sourcetype=sir 
| rex field=dv_affected_user "(?&amp;lt;user&amp;gt;[[:alnum:]]{5})\)"
| rex mode=sed field=opened_at "s/\.0+$//"
| rex mode=sed field=closed_at "s/\.0+$//"
| rename opened_at AS Opened_At, closed_at AS "Closed At", number AS "SIR Number", dv_assignment_group AS "Assignment Group", dv_state AS State, short_description AS "Short Description", close_notes AS "Closed Notes", dv_u_organizational_action AS "Org Action", u_concern AS Concern, dv_u_activity_type AS "Activity Type", dv_assigned_to AS "Assigned To"
| eval _time=Opened_At
| eval Source=coalesce(dv_u_specific_source, dv_u_security_source)
| fillnull value=NULL Source
| table Source, _time, "SIR Number"
| timechart span=1mon count usenull=f by Source&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 19:46:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-reporting-zeros-in-counts/m-p/675300#M55296</guid>
      <dc:creator>Mindy_McTiernan</dc:creator>
      <dc:date>2024-01-24T19:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart reporting zeros in counts</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-reporting-zeros-in-counts/m-p/675305#M55297</link>
      <description>&lt;P&gt;&amp;nbsp;I should add that the format of the Opened_At field is '2023-02-03 15:39:44'&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 20:33:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-reporting-zeros-in-counts/m-p/675305#M55297</guid>
      <dc:creator>Mindy_McTiernan</dc:creator>
      <dc:date>2024-01-24T20:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart reporting zeros in counts</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-reporting-zeros-in-counts/m-p/675306#M55298</link>
      <description>&lt;P&gt;Here's the answer&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/how-to-use-a-field-as-timestamp-for-a-timechart/m-p/145037" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/how-to-use-a-field-as-timestamp-for-a-timechart/m-p/145037&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Use strptime to format your field Opened_At and create a unixtimestamp&lt;/P&gt;&lt;P&gt;Then assign that to _time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 20:35:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-reporting-zeros-in-counts/m-p/675306#M55298</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2024-01-24T20:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart reporting zeros in counts</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-reporting-zeros-in-counts/m-p/675951#M55349</link>
      <description>&lt;P&gt;This allows me to create a timechart, but the time picker isn't connecting to it. So if I ask for a 90 day timechart I get all records for the last year vs just the last 90 days worth of data. Is there a fix for that &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/155648"&gt;@burwell&lt;/a&gt;&amp;nbsp;?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 17:17:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-reporting-zeros-in-counts/m-p/675951#M55349</guid>
      <dc:creator>Mindy_McTiernan</dc:creator>
      <dc:date>2024-01-30T17:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart reporting zeros in counts</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-reporting-zeros-in-counts/m-p/676111#M55357</link>
      <description>&lt;P&gt;Does adding | addinfo help you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247272"&gt;@Mindy_McTiernan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/i-cant-make-my-time-range-picker-pick.html" target="_blank"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/i-cant-make-my-time-range-picker-pick.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval unixtime_Opened_At
| eval _time=unixtime_Opened_At
| addinfo
| timechart ...&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 31 Jan 2024 16:32:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-reporting-zeros-in-counts/m-p/676111#M55357</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2024-01-31T16:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart reporting zeros in counts</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-reporting-zeros-in-counts/m-p/676123#M55358</link>
      <description>&lt;P&gt;Thank you for sharing that link &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/155648"&gt;@burwell&lt;/a&gt;&amp;nbsp;! It was hugely helpful. What finally ended up working was the following: The additional where line was key. Thank you for helping me work through this!&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval _time = strptime(Opened_At,"%Y-%m-%d %H:%M:%S") 
| sort -_time
| addinfo
| where _time&amp;gt;=info_min_time AND (_time&amp;lt;=info_max_time OR info_max_time="+Infinity")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 17:14:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-reporting-zeros-in-counts/m-p/676123#M55358</guid>
      <dc:creator>Mindy_McTiernan</dc:creator>
      <dc:date>2024-01-31T17:14:14Z</dc:date>
    </item>
  </channel>
</rss>

