<?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 First appears to be broken on my search in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/First-appears-to-be-broken-on-my-search/m-p/32375#M5753</link>
    <description>&lt;P&gt;I have a search tracking users logging into our juniper vpn&lt;/P&gt;

&lt;P&gt;sourcetype="SSLVPN" Action="- Login succeeded" |eval Username=lower(Username) | stats sparkline first(LoginTime) as LastLogin count by Username | sort -count | head 10&lt;/P&gt;

&lt;P&gt;Everything works perfect when it is set to last 24 hours but when I change the timeline to 30 days (the default) the first value of LastLogin is wrong on half the users, the count is correct but first is dropping off the last 24 hours worth of logins&lt;/P&gt;

&lt;P&gt;it is related to username=lower(Username) I am using this because users sign in as Jimmy.zio and jimmy.zio both work and I am aggregating the users into 1 &lt;/P&gt;</description>
    <pubDate>Tue, 13 Nov 2012 15:17:49 GMT</pubDate>
    <dc:creator>Eastek5551</dc:creator>
    <dc:date>2012-11-13T15:17:49Z</dc:date>
    <item>
      <title>First appears to be broken on my search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/First-appears-to-be-broken-on-my-search/m-p/32375#M5753</link>
      <description>&lt;P&gt;I have a search tracking users logging into our juniper vpn&lt;/P&gt;

&lt;P&gt;sourcetype="SSLVPN" Action="- Login succeeded" |eval Username=lower(Username) | stats sparkline first(LoginTime) as LastLogin count by Username | sort -count | head 10&lt;/P&gt;

&lt;P&gt;Everything works perfect when it is set to last 24 hours but when I change the timeline to 30 days (the default) the first value of LastLogin is wrong on half the users, the count is correct but first is dropping off the last 24 hours worth of logins&lt;/P&gt;

&lt;P&gt;it is related to username=lower(Username) I am using this because users sign in as Jimmy.zio and jimmy.zio both work and I am aggregating the users into 1 &lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2012 15:17:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/First-appears-to-be-broken-on-my-search/m-p/32375#M5753</guid>
      <dc:creator>Eastek5551</dc:creator>
      <dc:date>2012-11-13T15:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: First appears to be broken on my search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/First-appears-to-be-broken-on-my-search/m-p/32376#M5754</link>
      <description>&lt;P&gt;The first command returns the first value in the events list. So if the "first" event is 7 days ago, it will show that one. first and last are not chronological commands, they are based on the input order of the events. Instead, try this, which uses the &lt;CODE&gt;latest&lt;/CODE&gt; command:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype="SSLVPN" Action="- Login succeeded" |eval Username=lower(Username) | stats sparkline latest(LoginTime) as LastLogin count by Username | sort -count | head 10&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/SearchReference/Commonstatsfunctions"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/SearchReference/Commonstatsfunctions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2012 15:30:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/First-appears-to-be-broken-on-my-search/m-p/32376#M5754</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2012-11-13T15:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: First appears to be broken on my search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/First-appears-to-be-broken-on-my-search/m-p/32377#M5755</link>
      <description>&lt;P&gt;Perfect thanks fixed my search&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2012 16:43:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/First-appears-to-be-broken-on-my-search/m-p/32377#M5755</guid>
      <dc:creator>Eastek5551</dc:creator>
      <dc:date>2012-11-13T16:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: First appears to be broken on my search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/First-appears-to-be-broken-on-my-search/m-p/32378#M5756</link>
      <description>&lt;P&gt;Your welcome! please use the checkmark and mark accepted. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2012 13:55:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/First-appears-to-be-broken-on-my-search/m-p/32378#M5756</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2012-11-14T13:55:39Z</dc:date>
    </item>
  </channel>
</rss>

