<?xml version="1.0" encoding="UTF-8" ?>
<?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>Get data from Login Audit.csv in distributed environment?</title><link>https://community.appian.com/discussions/f/general/18452/get-data-from-login-audit-csv-in-distributed-environment</link><description>lHi, 
 Is there any way to achieve below scenario other than log streaming form Appain? 
 Currently our PROD environment has 3 servers and based on the load users are navigated to different Servers. 
 We would like to get login-audit.csv file from all</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Get data from Login Audit.csv in distributed environment?</title><link>https://community.appian.com/thread/72698?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2020 16:12:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d96a37e2-fdd2-49c4-bfa1-b2b5a326ff82</guid><dc:creator>juergeng393</dc:creator><description>&lt;p&gt;I agree - maybe the only way is to have&amp;nbsp;the streamed data written&amp;nbsp;into a database (by a non-Appian resource), then you&amp;nbsp;are able to connect this database to Appian and do the&amp;nbsp;dashboarding. Little bit back and forth, hm - maybe time to submit an enhancement ticket to&amp;nbsp;Appian - making the&amp;nbsp;log-in.csv available&amp;nbsp;for Appian within the cloud instance.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get data from Login Audit.csv in distributed environment?</title><link>https://community.appian.com/thread/72694?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2020 15:04:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c617374a-fc01-4c40-8cca-56c436e827ab</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Log Streaming does apparently handle the distributed logs across different app servers - but after having previously looked into it some, there does not appear to be a *direct* way to utilize that functionality from within Appian.&amp;nbsp; In other words, you need to have an external log stream receiver set up to then store the logs somewhere, and then use that external source somehow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get data from Login Audit.csv in distributed environment?</title><link>https://community.appian.com/thread/72692?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2020 14:59:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:98235dce-4c51-4ef1-9183-aceb23b728e5</guid><dc:creator>juergeng393</dc:creator><description>&lt;p&gt;True - maybe this is a solution: login-audit.csv is mentioned to be available with extended Cloud log streaming:&lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/19.4/Log_Streaming_for_Appian_Cloud.html"&gt;https://docs.appian.com/suite/help/19.4/Log_Streaming_for_Appian_Cloud.html&lt;/a&gt;&lt;br /&gt;But not sure how multiple servers would be handled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get data from Login Audit.csv in distributed environment?</title><link>https://community.appian.com/thread/72691?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2020 14:52:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bacebc1b-a7b1-4f89-b445-c32ba1a1a87c</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Gotcha.&amp;nbsp; Unfortunately for cloud installations (which is &lt;em&gt;&lt;strong&gt;my&lt;/strong&gt; &lt;/em&gt;use case even if it wasn&amp;#39;t mentioned in the original post), I don&amp;#39;t believe an external cron procedure is feasible, as no utilities that I know of are granted permission to have direct visibility into the inner workings of the server, including log files.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get data from Login Audit.csv in distributed environment?</title><link>https://community.appian.com/thread/72689?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2020 14:42:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e8268cce-6352-41e3-80bf-8c893c7904ca</guid><dc:creator>juergeng393</dc:creator><description>&lt;p&gt;We deal with the issue of multiple servers in our on-premise installation. The technique we are using is simple: our cron-job is copying the *csv files from the servers and is renaming those. Because we know how many servers we have, we just read the appropriate *csv files from the Appian/log directory based on the possible names (e.g. server1-login.csv, server2-login.csv). Caveat: yes we have to change the procedure if we would add another Application server, but that doesn&amp;#39;t happen so often.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get data from Login Audit.csv in distributed environment?</title><link>https://community.appian.com/thread/72688?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2020 14:33:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c50f2265-003d-4e42-a7a6-c90feb7d3ca6</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;If you&amp;#39;re using an on-prem install where you can just copy the log file, though, I don&amp;#39;t believe you will have the same issues with multiple distributed servers as mentioned in the original post.&amp;nbsp; If you do and you&amp;#39;ve found a way around this, I&amp;#39;d be curious to hear what technique you used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get data from Login Audit.csv in distributed environment?</title><link>https://community.appian.com/thread/72687?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2020 14:28:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9cd1b9a5-ea17-45b4-8abb-97d8d2df0b1c</guid><dc:creator>juergeng393</dc:creator><description>&lt;p&gt;We are using the Log-Reader plug-in too. Our cron job just copies over the log-in.csv from past day to the Appian//log-folder.&lt;br /&gt;Appian renames the log-in files every day, as explained here:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/19.4/Logging.html#managing-log-files"&gt;https://docs.appian.com/suite/help/19.4/Logging.html#managing-log-files&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get data from Login Audit.csv in distributed environment?</title><link>https://community.appian.com/thread/72686?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2020 14:23:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2457acab-0ede-47e5-a970-7dda1613b001</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;In general you just include the date in the filename like you&amp;#39;ve done above.&amp;nbsp; But for an environment with distributed logs, your engine 1 might have a file matching yesterday&amp;#39;s date, while engine 2 still has yesterday&amp;#39;s logins stored in the general &amp;quot;login-audit.csv&amp;quot;.&lt;/p&gt;
&lt;p&gt;So I set up something in my subprocess with one extra level of complexity - I have it query the named log file for yesterday, then i check if the results were blank, and if so, i query the general login audit file.&lt;/p&gt;
&lt;p&gt;In my case, after deduplication and all, I write these to my own database table.&amp;nbsp; But because of the possibility for duplicated entries to be written, I then take the further step of querying the existing table for matching entries and weeding out ones that have already been written (i.e. entries with the same username and login timestamp).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get data from Login Audit.csv in distributed environment?</title><link>https://community.appian.com/thread/72684?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2020 14:18:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2405b2cc-95b9-4be5-af88-bc2cb125519a</guid><dc:creator>adithyay</dc:creator><description>&lt;p&gt;Read&amp;nbsp;prior day&amp;#39;s log instead of current day.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get data from Login Audit.csv in distributed environment?</title><link>https://community.appian.com/thread/72683?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2020 14:10:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5f627d79-87e6-49f9-9229-95fb7b8d4368</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I&amp;#39;m using the &amp;quot;Log Reader&amp;quot; plug-in which handles it slightly differently and, slightly better IMHO.&amp;nbsp; With that instead of writing SQL statements you can just pull the contents of a named log file.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not entirely sure what you mean by &amp;quot;suggest how we need to pull&amp;quot; - can you clarify?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get data from Login Audit.csv in distributed environment?</title><link>https://community.appian.com/thread/72679?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2020 13:53:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a4758a5a-a568-4902-b54f-55fcffae7a93</guid><dc:creator>adithyay</dc:creator><description>&lt;p&gt;Thanks, Will try it out. Can you suggest how we need to pull the previous day log?&amp;nbsp;&lt;br /&gt;Currently I&amp;#39;m using below code and it is working fine.&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;queryappianlogs(
      sqlStatement: &amp;quot;SELECT * FROM login-audit&amp;quot;,
      hasHeader: false()
    ).data&lt;/pre&gt; But when I tried to use this it didn&amp;#39;t return any value&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;queryappianlogs(
      sqlStatement: &amp;quot;SELECT * FROM login-audit.csv.2020-03-16&amp;quot;,
      hasHeader: false()
    ).data&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get data from Login Audit.csv in distributed environment?</title><link>https://community.appian.com/thread/72660?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 14:51:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f4f162b6-1d4b-400b-82cc-7653e9a5460e</guid><dc:creator>juergeng393</dc:creator><description>&lt;p&gt;Log-in for the current day - yes correct. To simplify this, our cron job is copying the files only from the past day.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get data from Login Audit.csv in distributed environment?</title><link>https://community.appian.com/thread/72659?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 14:47:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:52c51a0d-4812-4dfd-b796-74460383d8b6</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I have a process that does uses the &amp;quot;read log&amp;quot; plug-in function.&amp;nbsp; I found in our distribued prod environment that it had approximately a random chance of pulling the logs from one of the 3 distributed log directories if I ran several in a row.&lt;/p&gt;
&lt;p&gt;So I made a separate process, with a &amp;quot;start process&amp;quot; smart service node calling this subprocess (and passing its data back to the parent).&amp;nbsp; I then set this node to run on MNI 10 times, &amp;quot;run one at a time&amp;quot; (important).&amp;nbsp; All the data gets passed back to the parent process and then deduplicated - and I have proven that this will pull from all 3 login-audit.csv files, when run a sufficient number of times.&amp;nbsp; Even then, this information should be considered &amp;quot;approximate&amp;quot;.&lt;/p&gt;
&lt;p&gt;Also keep in mind that if the environment has fairly few logins for the current day, the login-audit.csv file in some of the distributed directories might still be the data for a previous day. So whatever you implement will need to account for this possibility as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get data from Login Audit.csv in distributed environment?</title><link>https://community.appian.com/thread/72657?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 14:39:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:db3ad0e3-b72e-4241-ac8b-c42b5a1d5f97</guid><dc:creator>juergeng393</dc:creator><description>&lt;p&gt;&lt;span&gt;I can describe what we are doing: We have a cron job running at the servers, which are copying the Excel files to the one destination where an Appian process can read it and writes the data to a database.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;We have designed a small Appian app&amp;nbsp;where you can apply different filters to the data and display it in a dashboard.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Doing so, we have total transparency about log-ins (failed and successful), and usage of user-agents. We even track our licenses (unique logins) &lt;br /&gt;with this app.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get data from Login Audit.csv in distributed environment?</title><link>https://community.appian.com/thread/72654?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 13:33:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:965450c0-38f6-4daf-b5ef-81cac8534e51</guid><dc:creator>Jacob Edelman</dc:creator><description>&lt;p&gt;I would recommend then a cron job on the servers that dumps the data where you need it.&amp;nbsp; This data is not exposed in run time of appian very usefully so having an appian process handle this is not ideal.&amp;nbsp; Log streaming would also work, or splunk to monitor the files into a single log server which then can create a daily report for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get data from Login Audit.csv in distributed environment?</title><link>https://community.appian.com/thread/72653?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 13:31:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c154ccf8-42fd-4132-bb4a-a2990d031b55</guid><dc:creator>adithyay</dc:creator><description>&lt;p&gt;Thanks for the response Jacobe, We would like to export the data into an excel on daily basis from all the three servers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get data from Login Audit.csv in distributed environment?</title><link>https://community.appian.com/thread/72640?ContentTypeID=1</link><pubDate>Sat, 14 Mar 2020 18:43:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5d989b6b-c17a-4b44-a74a-8235fb7646f6</guid><dc:creator>Jacob Edelman</dc:creator><description>&lt;p&gt;Cant you see user account info in Admin console?&amp;nbsp; I imagine this would be across all systems.&amp;nbsp; However, if you want to do something with the data, good luck.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get data from Login Audit.csv in distributed environment?</title><link>https://community.appian.com/thread/72628?ContentTypeID=1</link><pubDate>Fri, 13 Mar 2020 14:38:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c196a880-cba5-4a04-ac1b-e0cc242aa858</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;&lt;a href="/members/david.pullen"&gt;David Pullen&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>