<?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: Return First user and _time from ACS syslog in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Return-First-user-and-time-from-ACS-syslog/m-p/80779#M20419</link>
    <description>&lt;P&gt;Awesome, that definitely got my results as I expected them.  Thank you so much!  Can you point me to a document that will help me to export the dataset to a CSV with the User_name and the _time?&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2012 18:40:51 GMT</pubDate>
    <dc:creator>buldamoosh</dc:creator>
    <dc:date>2012-02-28T18:40:51Z</dc:date>
    <item>
      <title>Return First user and _time from ACS syslog</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Return-First-user-and-time-from-ACS-syslog/m-p/80777#M20417</link>
      <description>&lt;P&gt;Firstly, my data is formatted like this:&lt;/P&gt;

&lt;P&gt;Dec 15 13:58:12 gthou-nsacs01p CisACS_01_PassedAuth ne8yfimc 1 0 Message-Type=Authen OK,User-Name=Adorton,NAS-IP-Address=10.71.11.7,Caller-ID=174.253.112.223,NAS-Port=124190720,Group-Name=VPN Neudesic,Filter Information=No Filters activated.,AAA Server=gthou-nsacs01p,Network Device Group=Wireless and VPN,Access Device=phe-ardmore-int-sa00-rad,&lt;/P&gt;

&lt;P&gt;I've created an eventtype which keys on "Message-Type=Authen OK" called acs-authentication-success.  The query I'm working off of looks like this:&lt;/P&gt;

&lt;P&gt;eventtype=acs-authentication-success | uniq User_Name | sort User_Name, -_date | fields User_Name, _time&lt;/P&gt;

&lt;P&gt;However, rather than displaying the latest time that every User_Name was seen in the syslog data, it returns EVERY individual instance.  I'm new to splunk reporting and would appreciate any assistance.  Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:27:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Return-First-user-and-time-from-ACS-syslog/m-p/80777#M20417</guid>
      <dc:creator>buldamoosh</dc:creator>
      <dc:date>2020-09-28T11:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Return First user and _time from ACS syslog</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Return-First-user-and-time-from-ACS-syslog/m-p/80778#M20418</link>
      <description>&lt;P&gt;First, do not use &lt;CODE&gt;uniq&lt;/CODE&gt;. I don't even know why it even exists. Try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype=acs-authentication-success | dedup User_Name | fields User_Name, _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype=acs-authentication-success | stats latest(_time) by User_Name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Feb 2012 18:16:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Return-First-user-and-time-from-ACS-syslog/m-p/80778#M20418</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-02-28T18:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Return First user and _time from ACS syslog</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Return-First-user-and-time-from-ACS-syslog/m-p/80779#M20419</link>
      <description>&lt;P&gt;Awesome, that definitely got my results as I expected them.  Thank you so much!  Can you point me to a document that will help me to export the dataset to a CSV with the User_name and the _time?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2012 18:40:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Return-First-user-and-time-from-ACS-syslog/m-p/80779#M20419</guid>
      <dc:creator>buldamoosh</dc:creator>
      <dc:date>2012-02-28T18:40:51Z</dc:date>
    </item>
  </channel>
</rss>

