<?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>Add parameters to the SQL query</title><link>https://community.appian.com/discussions/f/data/18899/add-parameters-to-the-sql-query</link><description>Hello! 
 I want to query the audit-login file with the queryappianlogs() function. The query is like this: 
 queryappianlogs( sqlStatement:&amp;quot;SELECT Username FROM login-audit WHERE Timestamp &amp;gt;= &amp;#39;2020-05-01&amp;#39; AND Timestamp &amp;lt; &amp;#39;2020-05-30&amp;#39; ORDER BY Timestamp</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Add parameters to the SQL query</title><link>https://community.appian.com/thread/74290?ContentTypeID=1</link><pubDate>Fri, 22 May 2020 13:05:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2ebe7b9a-661d-4c47-926d-2d2603f42e34</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I don&amp;#39;t assume this will work as Appian doesn&amp;#39;t keep more than a day&amp;#39;s worth of logins in the main login-audit.csv file - every time a new day begins (at least as of the first user login for that day), the existing login-audit.csv is renamed to a specific date-stamped file and a new login-audit.csv is created to be filled fresh.&amp;nbsp; The method I&amp;#39;ve needed to employ to get around this is running a nightly process where I query the full file from the prior day and write it all to my own DB table (making sure to check for duplicate rows), and then of course you can easily query that table later.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add parameters to the SQL query</title><link>https://community.appian.com/thread/74287?ContentTypeID=1</link><pubDate>Fri, 22 May 2020 10:57:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:65a8600f-d251-4001-b6c1-169b373fa64c</guid><dc:creator>ManuelHTG</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;did not find documentation regarding this queryappianlogs. However, if you can request the data already, it is a matter of working with it after calling it. I would try as well with a Process Report to have that data. Then a processAnalytics function to call your data and filter it out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>