<?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: Create graphs from a CSV file with time and values in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111563#M44308</link>
    <description>&lt;P&gt;thank you for helping me so quickly with this.It was mainly because there was readings which are 0 for some timestamps, corrected that with this.&lt;/P&gt;

&lt;P&gt;Graph looks all good. &lt;/P&gt;

&lt;P&gt;|inputlookup master.csv   |fields Time Bandwidth | eval _time=strptime(Time,"%m/%d/%Y %H:%M") | eval _bandwidth=(Bandwidth) | timechart mode(_bandwidth) span=5m | fillnull value=0&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 16:23:07 GMT</pubDate>
    <dc:creator>athreyavc</dc:creator>
    <dc:date>2020-09-28T16:23:07Z</dc:date>
    <item>
      <title>Create graphs from a CSV file with time and values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111551#M44296</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I am vey new to splunk, still exploring the options. &lt;/P&gt;

&lt;P&gt;I have a file it is a CSV&lt;/P&gt;

&lt;P&gt;03/27/2014 18:01:32, 2.036544&lt;BR /&gt;
03/27/2014 18:11:32, 1.846386&lt;BR /&gt;
03/27/2014 18:21:32, 1.911929&lt;BR /&gt;
03/27/2014 18:31:32, 1.655284&lt;BR /&gt;
03/27/2014 18:41:32, 9.481447&lt;BR /&gt;
03/27/2014 18:51:32, 9.385653&lt;BR /&gt;
03/27/2014 19:01:32, 9.599620&lt;BR /&gt;
03/27/2014 19:11:37, 2.907257&lt;BR /&gt;
03/27/2014 19:21:41, 2.192929&lt;BR /&gt;
03/27/2014 19:31:41, 1.993718&lt;/P&gt;

&lt;P&gt;Is it possible to create a graph using the CSV in Splunk?&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
A&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2014 15:42:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111551#M44296</guid>
      <dc:creator>athreyavc</dc:creator>
      <dc:date>2014-03-28T15:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create graphs from a CSV file with time and values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111552#M44297</link>
      <description>&lt;P&gt;You can add your csv file as lookup input file OR import to Splunk (with necessary field extraction configuration). Once data is in splunk, your can create charts as per your requirement.&lt;BR /&gt;
if lookup&lt;BR /&gt;
|inputlookup yourCsvFileName.csv | stats max(Value) by Timestamp&lt;BR /&gt;
if imported to index&lt;BR /&gt;
index=yourIndex source=*yourCsvFileName.csv | stats max(Value) by Timestamp&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2014 15:51:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111552#M44297</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-03-28T15:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create graphs from a CSV file with time and values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111553#M44298</link>
      <description>&lt;P&gt;Hi Thanks for the comment. &lt;/P&gt;

&lt;P&gt;Should I run it from the command line?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2014 16:19:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111553#M44298</guid>
      <dc:creator>athreyavc</dc:creator>
      <dc:date>2014-03-28T16:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create graphs from a CSV file with time and values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111554#M44299</link>
      <description>&lt;P&gt;All these activities you can do from Splunk Web UI.&lt;BR /&gt;
Create lookup &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Usefieldlookupstoaddinformationtoyourevents"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Usefieldlookupstoaddinformationtoyourevents&lt;/A&gt;&lt;BR /&gt;
Index data&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/UseSplunkWeb"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/UseSplunkWeb&lt;/A&gt;&lt;BR /&gt;
Search manual&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Search/Whatsinthismanual"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Search/Whatsinthismanual&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2014 17:45:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111554#M44299</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-03-28T17:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create graphs from a CSV file with time and values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111555#M44300</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;Sorry there was a delay from myside on the update. I got the Graph created. &lt;/P&gt;

&lt;P&gt;04/14/2014 08:05,1048576&lt;BR /&gt;
04/14/2014 08:10,1048576&lt;BR /&gt;
04/14/2014 08:15,908112&lt;BR /&gt;
04/14/2014 08:20,873912&lt;BR /&gt;
04/14/2014 08:25,1048576&lt;BR /&gt;
04/14/2014 08:30,1048576&lt;/P&gt;

&lt;P&gt;| inputlookup master.csv | fields Time,bandwidth | eval bw=bandwidth/100 | table Time bw,&lt;/P&gt;

&lt;P&gt;however the X-Axis is not showing the times. &lt;/P&gt;

&lt;P&gt;I am not sure how to use the timechart for this. &lt;/P&gt;

&lt;P&gt;Please help. &lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;A&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2014 14:53:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111555#M44300</guid>
      <dc:creator>athreyavc</dc:creator>
      <dc:date>2014-04-14T14:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create graphs from a CSV file with time and values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111556#M44301</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup master.csv | fields Time,bandwidth | convert ctime | eval bw=bandwidth/100| convert timeformat="%m/%d/%Y %H:%M" mktime(Time) as _time | table _time bw 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Apr 2014 15:10:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111556#M44301</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-04-14T15:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create graphs from a CSV file with time and values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111557#M44302</link>
      <description>&lt;P&gt;thanks for the reply,&lt;/P&gt;

&lt;P&gt;Sorry, it doesn't show the time in the X-axis, Graph is getting created and it is fine too, just want the X axis to show dates.&lt;/P&gt;

&lt;P&gt;Thanks again &lt;/P&gt;

&lt;P&gt;best Regards,&lt;/P&gt;

&lt;P&gt;A&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2014 16:18:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111557#M44302</guid>
      <dc:creator>athreyavc</dc:creator>
      <dc:date>2014-04-14T16:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create graphs from a CSV file with time and values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111558#M44303</link>
      <description>&lt;P&gt;Where are you using this query to create chart, a dashboard or from Search screen?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2014 16:33:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111558#M44303</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-04-14T16:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create graphs from a CSV file with time and values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111559#M44304</link>
      <description>&lt;P&gt;&lt;CODE&gt;| inputlookup master.csv|eval _time=strptime(Time,"%m/%d/%Y %H:%M")|timechart avg(Value) span=5m&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2014 16:47:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111559#M44304</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-04-14T16:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create graphs from a CSV file with time and values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111560#M44305</link>
      <description>&lt;P&gt;|inputlookup master.csv|eval _time=strptime(Time,"%m/%d/%Y %H:%M")|timechart avg(Bandwidth) span=5m&lt;/P&gt;

&lt;P&gt;Worked like a Charm, awesome!!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2014 17:01:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111560#M44305</guid>
      <dc:creator>athreyavc</dc:creator>
      <dc:date>2014-04-14T17:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create graphs from a CSV file with time and values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111561#M44306</link>
      <description>&lt;P&gt;One other issue I observed when I graph it it misses some values, it is becuase of Avg ?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2014 17:08:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111561#M44306</guid>
      <dc:creator>athreyavc</dc:creator>
      <dc:date>2014-04-14T17:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create graphs from a CSV file with time and values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111562#M44307</link>
      <description>&lt;P&gt;it may be missing some timestamp or it may not be able to read the formated csv file. &lt;BR /&gt;
try the below as well&lt;BR /&gt;
&lt;CODE&gt;|timechart Values(Bandwidth) span=5m&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2014 17:31:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111562#M44307</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-04-14T17:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create graphs from a CSV file with time and values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111563#M44308</link>
      <description>&lt;P&gt;thank you for helping me so quickly with this.It was mainly because there was readings which are 0 for some timestamps, corrected that with this.&lt;/P&gt;

&lt;P&gt;Graph looks all good. &lt;/P&gt;

&lt;P&gt;|inputlookup master.csv   |fields Time Bandwidth | eval _time=strptime(Time,"%m/%d/%Y %H:%M") | eval _bandwidth=(Bandwidth) | timechart mode(_bandwidth) span=5m | fillnull value=0&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:23:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111563#M44308</guid>
      <dc:creator>athreyavc</dc:creator>
      <dc:date>2020-09-28T16:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create graphs from a CSV file with time and values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111564#M44309</link>
      <description>&lt;P&gt;I've been looking for something that did what Values did.  Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 17:51:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-graphs-from-a-CSV-file-with-time-and-values/m-p/111564#M44309</guid>
      <dc:creator>reswob4</dc:creator>
      <dc:date>2017-05-11T17:51:49Z</dc:date>
    </item>
  </channel>
</rss>

