<?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: How to create a line chart without timestamp field? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464699#M80146</link>
    <description>&lt;P&gt;I need to exctract only the count of the day "where count=1 AND isnull(from_base)" but when i add this clause to the query i receive no result found, this is very strange.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2019 12:21:04 GMT</pubDate>
    <dc:creator>mik990</dc:creator>
    <dc:date>2019-08-29T12:21:04Z</dc:date>
    <item>
      <title>How to create a line chart without timestamp field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464671#M80118</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have to compare a search and a List.csv, so I did the following search and all works well:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7584i693578AD2E96765E/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;The problem is that I have to create a line chart about this count, but I cannot use the timechart as usual because in the result the timestamp field is not valorized.&lt;BR /&gt;
Does anybody know if it is possible (and eventually how) to use the _time value to find out a solution?&lt;/P&gt;

&lt;P&gt;Hoping to have been clear enough, I thank you in advance.&lt;/P&gt;

&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 13:33:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464671#M80118</guid>
      <dc:creator>mik990</dc:creator>
      <dc:date>2019-08-27T13:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart without timestamp field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464672#M80119</link>
      <description>&lt;P&gt;not very clear. I can see that you choose not to include _time in the stats, is it because there is no such field in the csv?&lt;BR /&gt;
if so, then how do you want your chart to look, what should be the x-axis?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 18:46:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464672#M80119</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-27T18:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart without timestamp field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464673#M80120</link>
      <description>&lt;P&gt;If you have another field containing the time,  you can use chart:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| chart count over your_time_field by hostname
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, this does will not group the events by the hour, day, etc.. it will create a value for each unique timestamp in that field. &lt;BR /&gt;
the bin command can do that:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| bin span=15m your_time_field
| chart count over your_time_field by hostname
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As long as your time field is recognized as a time. IF not you may need to use strptime/strftime to get it to a recognized time.  &lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 19:34:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464673#M80120</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2019-08-27T19:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart without timestamp field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464674#M80121</link>
      <description>&lt;P&gt;Hi Sukisen and thank you for the response, the csv file is only a list of Server that i must verify are sending logs, so basically the result that i have is a list without the timestamp. I would like that the X axis contains the time of the search, for example if I do a search every 2h i need a line chart with every search value.&lt;BR /&gt;
I hope this makes it clearer.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 07:30:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464674#M80121</guid>
      <dc:creator>mik990</dc:creator>
      <dc:date>2019-08-28T07:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart without timestamp field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464675#M80122</link>
      <description>&lt;P&gt;Thank you solarboyz,&lt;BR /&gt;
i don't have a timestamp field in my csv file, as i told to Sukisen i need a line chart that shows the result of the query every x amount of time, rather simple as a concept but struggling to get the result.&lt;BR /&gt;
In the following pic you can see the logs that i receive as a result, without a timestamp field:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7583i6BCB0CEE875294E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;could i use the Time field somehow to reach the goal?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 07:40:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464675#M80122</guid>
      <dc:creator>mik990</dc:creator>
      <dc:date>2019-08-28T07:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart without timestamp field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464676#M80123</link>
      <description>&lt;P&gt;hi @mik990 &lt;BR /&gt;
say at 8 am you run this and get a count of 3&lt;BR /&gt;
at 12 pm you run this get a count of 5&lt;BR /&gt;
how do you want your chart, a line chart with 2 points 3 and 5 in the y axis and 8AM and 12PM in the x axis?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 08:04:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464676#M80123</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-28T08:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart without timestamp field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464677#M80124</link>
      <description>&lt;P&gt;Hi @Sukisen1981 you get the point! I need a chart that show the result of the query every "x" time, likely the timechart function.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 08:27:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464677#M80124</guid>
      <dc:creator>mik990</dc:creator>
      <dc:date>2019-08-28T08:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart without timestamp field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464678#M80125</link>
      <description>&lt;P&gt;but how do you propose to get the times, 8AM and 12 PM?&lt;BR /&gt;
Its not part of your lookup csv, is it being captured somewhere in the index?&lt;BR /&gt;
When you run the search at 12PM how will you know what the count WAS at 8AM?&lt;BR /&gt;
Is it possible that your serverlist index has some timestamps?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 08:32:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464678#M80125</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-28T08:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart without timestamp field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464679#M80126</link>
      <description>&lt;P&gt;I would like to use the time of the search itself, in fact the time that interests me is the time in the moment of the search.&lt;BR /&gt;
Can't I make sure I get the query results at different times in the line chart?&lt;BR /&gt;
The servelist file does not have a timestamp because it simply represents the list of servers that I should find in case everything works, in fact the goal of the check is to always have as a result 0 (no server missing)&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 10:03:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464679#M80126</guid>
      <dc:creator>mik990</dc:creator>
      <dc:date>2019-08-28T10:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart without timestamp field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464680#M80127</link>
      <description>&lt;P&gt;i think you need to provide a mock screen snap of what you need.&lt;BR /&gt;
' in fact the time that interests me is the time in the moment of the search.'&lt;BR /&gt;
I am sure I am getting this wrong, but then you will have 1 single dot with the count value at 12 PM, what kind of line do you need? can you explain more?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 10:07:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464680#M80127</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-28T10:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart without timestamp field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464681#M80128</link>
      <description>&lt;P&gt;Sure @Sukisen1981 , i need a line chart like this one:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://imgbb.com/"&gt;&lt;IMG src="https://i.ibb.co/qYtnp76/Line-Chart-Example.png" alt="Line-Chart-Example" /&gt;&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I uses the query "index=serverlist | dedup hostname | timechart span=30d count", in this case i need to find the total amount of sending servers and it works.&lt;/P&gt;

&lt;P&gt;I need to do the same thing with the list of "non-sending" servers, so i have to a line that rapresent the number of missing server during a period, for example if i do a search from 9:00 to 10:00 i have 3 missing servers, from 12:00 to 13:00 5, and so on. I need a line that rapresent this trend.&lt;BR /&gt;
I hope is clear now, sorry if i can't explain myself correctly and thanks for your time.&lt;/P&gt;

&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 10:34:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464681#M80128</guid>
      <dc:creator>mik990</dc:creator>
      <dc:date>2019-08-28T10:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart without timestamp field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464682#M80129</link>
      <description>&lt;P&gt;possible to share your snap from imgur or something or just edit your question with the image? it is not visible here&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 11:45:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464682#M80129</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-28T11:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart without timestamp field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464683#M80130</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/203399"&gt;@mik990&lt;/a&gt; using the search as told by solarboyz1 , | bin span=15m your_time_field&lt;BR /&gt;
| chart count over your_time_field by hostname, in the vizualization tab you can pick line chart and you'll get it as per the _time&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:59:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464683#M80130</guid>
      <dc:creator>snigdhasaxena</dc:creator>
      <dc:date>2020-09-30T01:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart without timestamp field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464684#M80131</link>
      <description>&lt;P&gt;Sure, try with this link please &lt;A href="https://imgur.com/sWIXvmG"&gt;https://imgur.com/sWIXvmG&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 12:14:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464684#M80131</guid>
      <dc:creator>mik990</dc:creator>
      <dc:date>2019-08-28T12:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart without timestamp field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464685#M80132</link>
      <description>&lt;P&gt;hi @snigdhasaxena and @mik990 &lt;BR /&gt;
No just performing a chart by _time won't work, the _time will always be the same in this case , the value of the CSV update and that is @mik990 's issue.&lt;BR /&gt;
I still donot understand what kind of a line chart is needed, if you apply a stats or a timechart here all you will get is one single point and yet mik needs a line chart, so  I am not able to understand what is needed to be honest.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 12:18:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464685#M80132</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-28T12:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart without timestamp field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464686#M80133</link>
      <description>&lt;P&gt;Hi @snigdhasaxena and thanks for your reply, but if I add to my search i get "No result found" , i can't understand if there is something wrong.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 12:20:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464686#M80133</guid>
      <dc:creator>mik990</dc:creator>
      <dc:date>2019-08-28T12:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart without timestamp field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464687#M80134</link>
      <description>&lt;P&gt;Hi @Sukisen1981 , if I do different searches in different period i receive different results, so basically i need the trend of these results, something like a refresh of the situation but in a line chart, an "history" of results.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 12:25:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464687#M80134</guid>
      <dc:creator>mik990</dc:creator>
      <dc:date>2019-08-28T12:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart without timestamp field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464688#M80135</link>
      <description>&lt;P&gt;so do you have an earlier timestamp than 9:54:30 or the latest run  in the Time column?&lt;BR /&gt;
If no, then it is difficult to fathom from where you propose to pick up the 'history' runs.&lt;BR /&gt;
Is this doable? Yes, but then we need to delve into the saved search jobs etc. It will be complex&lt;BR /&gt;
But first, if you run your index query all time, do you just see the current(9:54:30) timestamp or the previous runs as well?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 13:01:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464688#M80135</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-28T13:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart without timestamp field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464689#M80136</link>
      <description>&lt;P&gt;Yes I have an earlier timestamp, consider that i'm working in a lab and i upload two list of hostname in two different days to test the search(as you can see in the attachement):&lt;/P&gt;

&lt;P&gt;&lt;A href="https://imgur.com/MSwSFuR"&gt;https://imgur.com/MSwSFuR&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I run the search All time as an example, In production i will run the search about the last month or something like this.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 13:31:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464689#M80136</guid>
      <dc:creator>mik990</dc:creator>
      <dc:date>2019-08-28T13:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a line chart without timestamp field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464690#M80137</link>
      <description>&lt;P&gt;then you do have a _time filed , that is 9:54:30 and 11:48:35&lt;BR /&gt;
both timechart and bin with stats will work here, what is the issue?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 16:12:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-line-chart-without-timestamp-field/m-p/464690#M80137</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-28T16:12:07Z</dc:date>
    </item>
  </channel>
</rss>

