<?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: I have following data in csv , how to display in chart in Splunk in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/I-have-following-data-in-csv-how-to-display-in-chart-in-Splunk/m-p/403898#M41958</link>
    <description>&lt;P&gt;I know about the time options. &lt;BR /&gt;
We are making a dashboard - where csv will have data on a weekly basis. So while writing query for above table I want to show latest week status. &lt;/P&gt;

&lt;P&gt;Tried using Search | eval sorttime=strptime('_time',"%m/%d/%Y %H:%M:%S%p")| sort -sorttime |dedup hostname compName +_time keepempty=true | xyseries hostname compName status&lt;/P&gt;

&lt;P&gt;But it's showing old week data instead of latest week&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:48:57 GMT</pubDate>
    <dc:creator>rashi83</dc:creator>
    <dc:date>2020-09-30T00:48:57Z</dc:date>
    <item>
      <title>I have following data in csv , how to display in chart in Splunk</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/I-have-following-data-in-csv-how-to-display-in-chart-in-Splunk/m-p/403894#M41954</link>
      <description>&lt;P&gt;CSV is like this &lt;BR /&gt;
hostid  compName            status&lt;BR /&gt;
x         v                              Passed&lt;BR /&gt;
y        v                              Passed&lt;BR /&gt;
z         v                              Failed&lt;/P&gt;

&lt;P&gt;Need to display like this in Splunk dashboard&lt;BR /&gt;
host id    CompName1     CompName2 CompName3&lt;BR /&gt;
x                        status          status             status&lt;BR /&gt;
y                        status          status             status&lt;/P&gt;

&lt;P&gt;I tried using chart command but stuck how to display status with it&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 14:24:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/I-have-following-data-in-csv-how-to-display-in-chart-in-Splunk/m-p/403894#M41954</guid>
      <dc:creator>rashi83</dc:creator>
      <dc:date>2019-06-04T14:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: I have following data in csv , how to display in chart in Splunk</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/I-have-following-data-in-csv-how-to-display-in-chart-in-Splunk/m-p/403895#M41955</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;yourquery
|table hostid compName status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I think this should work or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|xyseries hostid compName status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|chart values(hostid) over status by compName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Jun 2019 14:37:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/I-have-following-data-in-csv-how-to-display-in-chart-in-Splunk/m-p/403895#M41955</guid>
      <dc:creator>martinpu</dc:creator>
      <dc:date>2019-06-04T14:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: I have following data in csv , how to display in chart in Splunk</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/I-have-following-data-in-csv-how-to-display-in-chart-in-Splunk/m-p/403896#M41956</link>
      <description>&lt;P&gt;Thanks !&lt;BR /&gt;
Need one more guidance what date function can be used to get latest week events. I want to ignore past date results.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 15:14:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/I-have-following-data-in-csv-how-to-display-in-chart-in-Splunk/m-p/403896#M41956</guid>
      <dc:creator>rashi83</dc:creator>
      <dc:date>2019-06-04T15:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: I have following data in csv , how to display in chart in Splunk</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/I-have-following-data-in-csv-how-to-display-in-chart-in-Splunk/m-p/403897#M41957</link>
      <description>&lt;P&gt;In query window, on right side choose time options - under presets use relative time and  "Week to date" or "Previous week".&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 15:43:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/I-have-following-data-in-csv-how-to-display-in-chart-in-Splunk/m-p/403897#M41957</guid>
      <dc:creator>martinpu</dc:creator>
      <dc:date>2019-06-04T15:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: I have following data in csv , how to display in chart in Splunk</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/I-have-following-data-in-csv-how-to-display-in-chart-in-Splunk/m-p/403898#M41958</link>
      <description>&lt;P&gt;I know about the time options. &lt;BR /&gt;
We are making a dashboard - where csv will have data on a weekly basis. So while writing query for above table I want to show latest week status. &lt;/P&gt;

&lt;P&gt;Tried using Search | eval sorttime=strptime('_time',"%m/%d/%Y %H:%M:%S%p")| sort -sorttime |dedup hostname compName +_time keepempty=true | xyseries hostname compName status&lt;/P&gt;

&lt;P&gt;But it's showing old week data instead of latest week&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:48:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/I-have-following-data-in-csv-how-to-display-in-chart-in-Splunk/m-p/403898#M41958</guid>
      <dc:creator>rashi83</dc:creator>
      <dc:date>2020-09-30T00:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: I have following data in csv , how to display in chart in Splunk</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/I-have-following-data-in-csv-how-to-display-in-chart-in-Splunk/m-p/403899#M41959</link>
      <description>&lt;P&gt;Try this time modifier in beginning of search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=@w1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Shows all results from latest monday untill now&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=@w0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;for events from latest sunday till now&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-5d@w1 latest=@w6
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;latest business week results &lt;/P&gt;

&lt;P&gt;Not 100% if this is what you need...&lt;/P&gt;

&lt;P&gt;Or maybe this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval thisWeekNumber=strftime(now(),"%V") 
| eval weekNoFromFile = strftime(_time, "%V")
| where thisWeekNumber=weekNoFromFile
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Jun 2019 16:15:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/I-have-following-data-in-csv-how-to-display-in-chart-in-Splunk/m-p/403899#M41959</guid>
      <dc:creator>martinpu</dc:creator>
      <dc:date>2019-06-04T16:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: I have following data in csv , how to display in chart in Splunk</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/I-have-following-data-in-csv-how-to-display-in-chart-in-Splunk/m-p/403900#M41960</link>
      <description>&lt;P&gt;@martinpu thanks . &lt;BR /&gt;
I have created a dropdown as input panel and handling time .&lt;/P&gt;

&lt;P&gt;I also wanted to generate percentage in the same query based on status = Passed and Failed. &lt;BR /&gt;
How do u recommend to do ?&lt;BR /&gt;
index=x | xyseries hostname compName status | eval percentage=round((Passed/Passed+Failed)*100)&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 18:28:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/I-have-following-data-in-csv-how-to-display-in-chart-in-Splunk/m-p/403900#M41960</guid>
      <dc:creator>rashi83</dc:creator>
      <dc:date>2019-06-04T18:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: I have following data in csv , how to display in chart in Splunk</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/I-have-following-data-in-csv-how-to-display-in-chart-in-Splunk/m-p/403901#M41961</link>
      <description>&lt;P&gt;Hi @rashi83 &lt;BR /&gt;
You would have to do that via eventstats probably. Though I'd recommend doing some own investigation in how to do this as there are many examples of how to accomplish this easily available.&lt;/P&gt;

&lt;P&gt;Please accept my answer in the original reply so this question can be resolved.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 07:45:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/I-have-following-data-in-csv-how-to-display-in-chart-in-Splunk/m-p/403901#M41961</guid>
      <dc:creator>martinpu</dc:creator>
      <dc:date>2019-06-05T07:45:10Z</dc:date>
    </item>
  </channel>
</rss>

