<?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 time chart with milestones? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-time-chart-with-milestones/m-p/256620#M76822</link>
    <description>&lt;P&gt;Also I'm thinking that the sources/indexes are mismatched&lt;/P&gt;

&lt;P&gt;index=betadb has a source of bbOrCellOffline&lt;/P&gt;

&lt;P&gt;index=allmsos has a source of Beta.csv&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2017 17:36:49 GMT</pubDate>
    <dc:creator>dbcase</dc:creator>
    <dc:date>2017-01-27T17:36:49Z</dc:date>
    <item>
      <title>How to create a time chart with milestones?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-time-chart-with-milestones/m-p/256617#M76819</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to get some sort of timechart with milestones. Something like the attached pic (example) . &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/2377iD74CD02D446E161A/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;I know Splunk can't do exactly what is in the pic but I was thinking of a column chart with two series.   Series #1 would come from index betadb, and series 2 would come from index allmsos.&lt;/P&gt;

&lt;P&gt;betadb events look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1004534,1004295,TCA203,N,N,01-26-2017 05:01:33,null
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PremiseID, reference number, hardware, don't care, don't care, date time, don't care&lt;/P&gt;

&lt;P&gt;and the allmsos data looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;01-27-2017 10:27:59,7_3_10_000500_3851899
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;date time, version number&lt;/P&gt;

&lt;P&gt;Iguinn was very helpful and came up with a query that looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=betadb OR index=allmsos) (source=*bbOrCellOffline* OR source=*Beta.csv*) 
 | eval theSource=if(index=="betadb","bbOrCellOffline","Beta.csv")
 | timechart count by theSource|rename Beta.csv as "Version Count"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And it works the way I had described the problem. What I didn't think of is, the allmsos data will be updated every day so there will be "duplicate" entries in there, only the date will change.  I don't want to graph every day. I only want to graph when the version number changes.....  And I'm stumped on this one.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 17:14:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-time-chart-with-milestones/m-p/256617#M76819</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-01-27T17:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a time chart with milestones?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-time-chart-with-milestones/m-p/256618#M76820</link>
      <description>&lt;P&gt;Give this a try. Check the field names and base searches. The ideas is to have allmsos data appended to other data and a dedup is done on version number so that only the records when version changes will exist.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=betadb  source=*Beta.csv*) 
 timechart count as  "Version Count"
| append [search index=allmsos source=*bbOrCellOffline* | dedup "Version Number" | timechart count as bbOrCellOffline] 
 timechart values(*) as * 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Jan 2017 17:29:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-time-chart-with-milestones/m-p/256618#M76820</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-27T17:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a time chart with milestones?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-time-chart-with-milestones/m-p/256619#M76821</link>
      <description>&lt;P&gt;Hi Somesoni2,&lt;/P&gt;

&lt;P&gt;Not very familiar with the append command (yet)&lt;/P&gt;

&lt;P&gt;getting this error&lt;/P&gt;

&lt;P&gt;Error in 'append' command: The last argument must be a subsearch.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 17:34:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-time-chart-with-milestones/m-p/256619#M76821</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-01-27T17:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a time chart with milestones?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-time-chart-with-milestones/m-p/256620#M76822</link>
      <description>&lt;P&gt;Also I'm thinking that the sources/indexes are mismatched&lt;/P&gt;

&lt;P&gt;index=betadb has a source of bbOrCellOffline&lt;/P&gt;

&lt;P&gt;index=allmsos has a source of Beta.csv&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 17:36:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-time-chart-with-milestones/m-p/256620#M76822</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-01-27T17:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a time chart with milestones?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-time-chart-with-milestones/m-p/256621#M76823</link>
      <description>&lt;P&gt;Just a thought:&lt;/P&gt;

&lt;P&gt;How about the one's u want to keep as timeline milestone, keep them as bar charts and then overlay the one you want to keep as line on these bars. That will give the similar affect of having milestones standing lines (bars) and a line running through them (the value u overlayed).&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 17:36:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-time-chart-with-milestones/m-p/256621#M76823</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2017-01-27T17:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a time chart with milestones?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-time-chart-with-milestones/m-p/256622#M76824</link>
      <description>&lt;P&gt;That will work even better!  TY!  Now to get the query sorted&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 17:39:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-time-chart-with-milestones/m-p/256622#M76824</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-01-27T17:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a time chart with milestones?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-time-chart-with-milestones/m-p/256623#M76825</link>
      <description>&lt;P&gt;Actually missed the puoe before last timechart. Please add that and update the sources accordingly. &lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 17:47:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-time-chart-with-milestones/m-p/256623#M76825</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-27T17:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a time chart with milestones?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-time-chart-with-milestones/m-p/256624#M76826</link>
      <description>&lt;P&gt;Fixed the search but still not quite where it needs to be&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=allmsos  source=*Beta.csv*) 
  |timechart count as  "Version Count"  | append [search index=betadb source=*bbOrCellOffline* | dedup "Version"| timechart count as bbOrCellOffline] |
  timechart values(*) as * 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This query just gives a stat table of the Beta.csv source.  No betadb data is represented.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 17:53:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-time-chart-with-milestones/m-p/256624#M76826</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-01-27T17:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a time chart with milestones?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-time-chart-with-milestones/m-p/256625#M76827</link>
      <description>&lt;P&gt;Also The Version field is part of the Beta.csv source.  If I remove the dedup "Version" it does give me close to the chart I'm looking for but I'm back to each day having a Version column as in the original query that Iguinn provided.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 17:56:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-time-chart-with-milestones/m-p/256625#M76827</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-01-27T17:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a time chart with milestones?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-time-chart-with-milestones/m-p/256626#M76828</link>
      <description>&lt;P&gt;Fixed it!   &lt;/P&gt;

&lt;P&gt;Query looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=allmsos  source=*Beta.csv*) | dedup "Version"
  |timechart count as  "Version Count"  | append [search index=betadb source=*bbOrCellOffline* | timechart count as bbOrCellOffline] |
  timechart values(*) as * |convert num("Version Count") as vc |eval vc=vc*50|fields - "Version Count"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Jan 2017 19:38:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-time-chart-with-milestones/m-p/256626#M76828</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-01-27T19:38:43Z</dc:date>
    </item>
  </channel>
</rss>

