<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Login Information Parser</title><link>/b/appmarket/posts/login-information-parser</link><description>Overview 
 The Smart Service, Import Login Audit, will read your login audit file(s) and populate a database with information about logins. This is provided mainly as an example (source code provided) as you may need to modify the smart service to make</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Login Information Parser</title><link>https://community.appian.com/b/appmarket/posts/login-information-parser</link><pubDate>Thu, 16 Mar 2023 18:26:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:354ea457-a60a-45d6-a4d7-100fda0f51ac</guid><dc:creator>yogeshd0002</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Recently we started getting an error when trying to invoke the &amp;quot;Import Login Information&amp;quot; smart service. We are calling this smart service whenever user tries to login to the system first time, to capture first login details. We have not seen this error coming before, started from today itself. &lt;br /&gt;It did worked for few users and thrown below error for couple of them so as such random behaviour&lt;/p&gt;
&lt;p&gt;ERROR Message:&lt;br /&gt;java.lang.NumberFormatException: For input string: &amp;quot;&amp;quot; at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)&lt;/p&gt;&lt;img src="https://community.appian.com/aggbug?PostID=845&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Login Information Parser</title><link>https://community.appian.com/b/appmarket/posts/login-information-parser</link><pubDate>Thu, 30 Jul 2020 11:02:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:354ea457-a60a-45d6-a4d7-100fda0f51ac</guid><dc:creator>spandanat</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi[mention:0d1beecf844a473db6e88cb4a2b4fbc6:e9ed411860ed4f2ba0265705b8793d05],&lt;/p&gt;
&lt;p&gt;Your server is configuration with &amp;#39;High Availability&amp;#39; so we have 3 nodes of logs.&lt;/p&gt;
&lt;p&gt;so we are missing data into table for around 445 users.&lt;/p&gt;
&lt;p&gt;The Plugin is parse randomly available node, any solution for this?&lt;/p&gt;&lt;img src="https://community.appian.com/aggbug?PostID=845&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Login Information Parser</title><link>https://community.appian.com/b/appmarket/posts/login-information-parser</link><pubDate>Tue, 07 Jul 2020 02:45:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:354ea457-a60a-45d6-a4d7-100fda0f51ac</guid><dc:creator>John Stretton</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;[mention:0d1beecf844a473db6e88cb4a2b4fbc6:e9ed411860ed4f2ba0265705b8793d05], are you familiar with an issue where this plugin fails to write a large portion of a particular day&amp;#39;s login history? It seems like there are random days on which the login history is truncated. You can see in the table below that on some days (such as 7/1 or 6/17), the max time for a recorded login is very early in the day, and in fact I have confirmed that there are many more rows in the log file than what was written to the database for those days.&lt;/p&gt;
&lt;p&gt;This also happened for 7/6, but I deleted the existing login history for 7/6 and reran the plugin, and it wrote all of the rows correctly. However, I tried this for 6/17 (twice) and both times it failed at exactly the same place where it stopped writing the first time.&lt;/p&gt;
&lt;p&gt;I have just discovered that some users have been incorrectly deactivated for inactivity due to this issue, so any help would be much appreciated.&lt;/p&gt;
&lt;p&gt;date count(*) max(time) &lt;br /&gt;2020-07-06 763 23:48:05 &lt;br /&gt;2020-07-05 75 23:55:53 &lt;br /&gt;2020-07-04 54 23:17:39 &lt;br /&gt;2020-07-03 314 23:41:08 &lt;br /&gt;2020-07-02 587 23:59:27 &lt;br /&gt;2020-07-01 142 10:15:13 &lt;br /&gt;2020-06-30 687 23:48:19 &lt;br /&gt;2020-06-29 523 15:20:02 &lt;br /&gt;2020-06-28 102 23:53:13 &lt;br /&gt;2020-06-27 88 23:45:35 &lt;br /&gt;2020-06-26 586 23:45:32 &lt;br /&gt;2020-06-25 694 23:46:02 &lt;br /&gt;2020-06-24 676 23:58:31 &lt;br /&gt;2020-06-23 557 19:02:40 &lt;br /&gt;2020-06-22 790 23:44:43 &lt;br /&gt;2020-06-21 77 23:48:33 &lt;br /&gt;2020-06-20 61 23:24:34 &lt;br /&gt;2020-06-19 642 23:51:23 &lt;br /&gt;2020-06-18 654 23:50:03 &lt;br /&gt;2020-06-17 72 07:50:31 &lt;br /&gt;2020-06-16 711 23:59:06 &lt;br /&gt;2020-06-15 705 23:37:09 &lt;br /&gt;2020-06-14 64 23:36:59 &lt;br /&gt;2020-06-13 57 23:37:49 &lt;br /&gt;2020-06-12 527 23:38:02 &lt;/p&gt;&lt;img src="https://community.appian.com/aggbug?PostID=845&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Login Information Parser</title><link>https://community.appian.com/b/appmarket/posts/login-information-parser</link><pubDate>Tue, 29 Oct 2019 11:41:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:354ea457-a60a-45d6-a4d7-100fda0f51ac</guid><dc:creator>Venkatesh Suram</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi [mention:0d1beecf844a473db6e88cb4a2b4fbc6:e9ed411860ed4f2ba0265705b8793d05]&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Hope your doing Well!&lt;br /&gt;&amp;nbsp;&lt;br /&gt;Observed the below issues with the plug-in.&lt;br /&gt;1. When we pass the date as rule input to smart service but unfortunately if the log file is not exist on that date, the smart service is throwing the java.lang.NullPointerException. Is there any chance to handle in java code?.&lt;br /&gt;2. The second one is which mentioned by [mention:9b313f6514bf4b6f98e31d2815bc2aad:e9ed411860ed4f2ba0265705b8793d05]&lt;/p&gt;
&lt;p&gt;Can you please help out on this.&lt;br /&gt;Thanks!!&lt;/p&gt;&lt;img src="https://community.appian.com/aggbug?PostID=845&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Login Information Parser</title><link>https://community.appian.com/b/appmarket/posts/login-information-parser</link><pubDate>Thu, 24 Oct 2019 11:16:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:354ea457-a60a-45d6-a4d7-100fda0f51ac</guid><dc:creator>spandanat</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi [mention:0d1beecf844a473db6e88cb4a2b4fbc6:e9ed411860ed4f2ba0265705b8793d05]&lt;/p&gt;
&lt;p&gt;Hope your doing Well!&lt;/p&gt;
&lt;p&gt;I could parse last one month files from system log named &amp;quot;login-audit.csv.2019-10-23&amp;quot; however the files before that were compressed and the named &amp;quot;login-audit.csv.2019-09-05.gz&amp;quot; and the plugin is throws null pointer exception.&lt;/p&gt;
&lt;p&gt;can you update the plugin so that it should check for these extension file and if exist then it should be capable of extracting zip and read the file?&lt;br /&gt;login-audit.csv.2019-09-05.gz&amp;gt;login-audit.csv.2019-09-05&lt;/p&gt;
&lt;p&gt;Or do we have any other plugin which help me here?&lt;/p&gt;
&lt;p&gt;Thanks in Advance&lt;/p&gt;&lt;img src="https://community.appian.com/aggbug?PostID=845&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Login Information Parser</title><link>https://community.appian.com/b/appmarket/posts/login-information-parser</link><pubDate>Mon, 17 Dec 2018 19:09:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:354ea457-a60a-45d6-a4d7-100fda0f51ac</guid><dc:creator>Amitkumar</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Has anyone used this plug-in with IBM DB2? Did it work successfully?&lt;/p&gt;
&lt;img src="https://community.appian.com/aggbug?PostID=845&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Login Information Parser</title><link>https://community.appian.com/b/appmarket/posts/login-information-parser</link><pubDate>Tue, 23 Oct 2018 18:54:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:354ea457-a60a-45d6-a4d7-100fda0f51ac</guid><dc:creator>erickp</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Question: the login-audit.csv has information regarding the browser and device used to login. Does anyone know why this information was not added to the plugin to insert into the logins table?&lt;/p&gt;
&lt;img src="https://community.appian.com/aggbug?PostID=845&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Login Information Parser</title><link>https://community.appian.com/b/appmarket/posts/login-information-parser</link><pubDate>Thu, 31 May 2018 19:36:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:354ea457-a60a-45d6-a4d7-100fda0f51ac</guid><dc:creator>Eduardo Fuentes</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Oh! good point. I was looking at a completely different plug-in. I apologize.&lt;/p&gt;
&lt;p&gt;No, the existing version does not work with the shared logs functionality. It&amp;#39;ll have to be updated in a similar fashion (similar to the code I posted above).&lt;/p&gt;
&lt;p&gt;Components come with the source and are available to extension or modification from the participants of this community.&lt;/p&gt;
&lt;img src="https://community.appian.com/aggbug?PostID=845&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Login Information Parser</title><link>https://community.appian.com/b/appmarket/posts/login-information-parser</link><pubDate>Tue, 29 May 2018 15:19:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:354ea457-a60a-45d6-a4d7-100fda0f51ac</guid><dc:creator>Bala K</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;[mention:0d1beecf844a473db6e88cb4a2b4fbc6:e9ed411860ed4f2ba0265705b8793d05] I dont see the above code in the plugin src when i download it from App market. Is it updated version and available anywhere to download?&lt;/p&gt;
&lt;p&gt;Below is what i see in &amp;nbsp;com.appiancorp.loginparser-1.0.2.jar - com.appiancorp.loginparser.ImportLoginInformation.java&lt;/p&gt;
&lt;p&gt;Code:&lt;/p&gt;
&lt;p&gt;------------&lt;/p&gt;
&lt;p&gt; String logsPath = ConfigurationLoader.getConfiguration().getAeLogs();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;String dateString = &amp;quot;&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(date != null){&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DateFormat dateFormat = new SimpleDateFormat(&amp;quot;yyyy-MM-dd&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dateString = &amp;quot;.&amp;quot; + dateFormat.format(date); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOG.debug(&amp;quot;Reading file: &amp;quot; + logsPath + &amp;quot;/login-audit.csv&amp;quot; + dateString);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;processLogins(logsPath + &amp;quot;/login-audit.csv&amp;quot; + dateString);&lt;/p&gt;
&lt;img src="https://community.appian.com/aggbug?PostID=845&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Login Information Parser</title><link>https://community.appian.com/b/appmarket/posts/login-information-parser</link><pubDate>Tue, 22 May 2018 15:39:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:354ea457-a60a-45d6-a4d7-100fda0f51ac</guid><dc:creator>Eduardo Fuentes</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;As explained in &lt;a rel="nofollow" target="_blank" href="https://docs.appian.com/suite/help/18.1/High_Availability_and_Distributed_Installations.html#shared-logs"&gt;docs.appian.com/.../High_Availability_and_Distributed_Installations.html&lt;/a&gt; in an HA set-up the use of a shared-logs folder is the recommendation.&lt;/p&gt;
&lt;p&gt;When you go to the logs of your cloud-site you should see that the logs are read from the shared-logs location.&lt;/p&gt;
&lt;p&gt;Looking at the code it seems it is designed to look for files in there, which suggests it should work.&lt;/p&gt;
&lt;p&gt;		 &amp;nbsp; &amp;nbsp; &amp;nbsp;String logsPath = ConfigurationLoader.getConfiguration().getAeLogs();&lt;/p&gt;
&lt;p&gt;		 &amp;nbsp; &amp;nbsp; &amp;nbsp;String logParentPath = new File(logsPath).getParent();&lt;/p&gt;
&lt;p&gt;		 &amp;nbsp; &amp;nbsp; &amp;nbsp;String sharedLogsPath = logParentPath + File.separator + SHARED_LOGS_FOLDERNAME;&lt;/p&gt;
&lt;p&gt;		 &amp;nbsp; &amp;nbsp; &amp;nbsp;if (new File(sharedLogsPath).exists()) {&lt;/p&gt;
&lt;p&gt;		 &amp;nbsp; &amp;nbsp;	 &amp;nbsp;List&amp;lt;File&amp;gt; allSharedLoginAuditFiles = new ArrayList&amp;lt;&amp;gt;();&lt;/p&gt;
&lt;p&gt;		 &amp;nbsp; &amp;nbsp;	 &amp;nbsp;allSharedLoginAuditFiles = listf(sharedLogsPath);&lt;/p&gt;
&lt;p&gt;		 &amp;nbsp; &amp;nbsp; &amp;nbsp;	if(allSharedLoginAuditFiles.size() &amp;gt; 0) {&lt;/p&gt;
&lt;p&gt;		 &amp;nbsp; &amp;nbsp; &amp;nbsp;		for (File file : allSharedLoginAuditFiles) {&lt;/p&gt;
&lt;p&gt;		 &amp;nbsp; &amp;nbsp; &amp;nbsp;			processLogins(file.getAbsolutePath());&lt;/p&gt;
&lt;p&gt;		 &amp;nbsp; &amp;nbsp; &amp;nbsp;		}&lt;/p&gt;
&lt;p&gt;		 &amp;nbsp; &amp;nbsp; &amp;nbsp;	}&lt;/p&gt;
&lt;p&gt;I encourage you to review the login-audit.csv files in the logs folder (aka shared-logs for HA) and review whether it contains all logins, if so, then the plug-in will work because it will read it from shared-logs.&lt;/p&gt;
&lt;img src="https://community.appian.com/aggbug?PostID=845&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Login Information Parser</title><link>https://community.appian.com/b/appmarket/posts/login-information-parser</link><pubDate>Wed, 16 May 2018 13:00:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:354ea457-a60a-45d6-a4d7-100fda0f51ac</guid><dc:creator>vishalg</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi [mention:0d1beecf844a473db6e88cb4a2b4fbc6:e9ed411860ed4f2ba0265705b8793d05] &lt;/p&gt;
&lt;p&gt;We are currently on High Availability (HA) setup and want to get full picture of all the logins on the system.&lt;/p&gt;
&lt;p&gt;I came across this plugin recently. I wonder if you know if this plugin caters for High Availability multi-instance setup where there may be 1 login-audit file per instance? &lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;
&lt;p&gt;Vishal&lt;/p&gt;
&lt;img src="https://community.appian.com/aggbug?PostID=845&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Login Information Parser</title><link>https://community.appian.com/b/appmarket/posts/login-information-parser</link><pubDate>Mon, 05 Feb 2018 22:41:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:354ea457-a60a-45d6-a4d7-100fda0f51ac</guid><dc:creator>Ben Dudley</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi [mention:a52279d8b0cb4a6b8a2b233be546e7a8:e9ed411860ed4f2ba0265705b8793d05], [mention:0d1beecf844a473db6e88cb4a2b4fbc6:e9ed411860ed4f2ba0265705b8793d05] made an update to the Plug-in listing and the sample DDL for the table now references a length of 50. &amp;nbsp;Thanks for the suggestion!&lt;/p&gt;
&lt;img src="https://community.appian.com/aggbug?PostID=845&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Login Information Parser</title><link>https://community.appian.com/b/appmarket/posts/login-information-parser</link><pubDate>Fri, 02 Feb 2018 18:01:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:354ea457-a60a-45d6-a4d7-100fda0f51ac</guid><dc:creator>bradc</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;To those using this plugin - I discovered an issue where some of our users are logging IP addresses longer than the 20 characters set on the table in the documentation. &amp;nbsp;The IP address logged is two addresses separated by a comma and space. I would recommend extending the ipaddress column length to at least 50 (I did 100 just to be safe) to avoid this issue. &amp;nbsp;The plugin will simply write records up to the point a record would be truncated and stop writing additional records. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is a link to some information I found regarding why there would be two IP addresses logged:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_blank" href="https://serverfault.com/questions/593913/why-do-apache-access-logs-sometimes-have-two-host-ip-addresses/742754"&gt;serverfault.com/.../742754&lt;/a&gt;&lt;/p&gt;
&lt;img src="https://community.appian.com/aggbug?PostID=845&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>