<?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: Parsing the timestamps in the audit logs in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Parsing-the-timestamps-in-the-audit-logs/m-p/1431510#M609407</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's done it, thanks. Guess QlikView doesn't like literals in format strings for some reason!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Dec 2017 14:54:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-05T14:54:47Z</dc:date>
    <item>
      <title>Parsing the timestamps in the audit logs</title>
      <link>https://community.qlik.com/t5/QlikView/Parsing-the-timestamps-in-the-audit-logs/m-p/1431508#M609403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to load data from the Audit_....log file qlikview generates, such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Server Started Timestamp Document Type User Message&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;20171122T084730.000Z 20171205T081111.000Z D:/QlikView/Documents/Live/sales/sales.qvw Action AQ\Jgorman action(32)[TypeKey, Contract, ] Document\BU198_079632301 4023&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;20171122T084730.000Z 20171205T081134.000Z D:/QlikView/Documents/Live/sales/sales.qvw Sheet AQ\Jgorman Activated sheet Document\SH26_636756900 4023&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;20171122T084730.000Z 20171205T081147.000Z D:/QlikView/Documents/Live/sales/sales.qvw Action AQ\Jgorman action(4)[$Field, ] Document\BU484_955942433 4023&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;20171122T084730.000Z 20171205T081147.000Z D:/QlikView/Documents/Live/sales/sales.qvw Selection AQ\Jgorman Clear All 4023&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I've tried many, many, different formulae, but cannot work out how to get the timestamp into a proper date format so I can do a mapping to my time dimension:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;What I have so far is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD ApplyMap('TimeMap',Floor(Timestamp#(Timestamp, 'yyyyMMddThhmmss.fffZ'))) AS DateTimeKey,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;'Usage' AS RecTypeKey,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ConvertToLocalTime(Timestamp) AS LocalTime,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Num(Timestamp#(Timestamp)) AS NoFormat,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Num(Timestamp#(Timestamp, 'yyyyMMddThhmmss.fffZ')) AS Format,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;'Usage' AS TypeKey,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Document,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('UserMap',Upper(User)) AS UserKey,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Message&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[\\Qlikview\d$\QlikView\Documents\Live\Logs\Audit_QLIKVIEW.log]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;(txt, utf8, embedded labels, delimiter is '\t', msq);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;However, I just get a '-' showing for the DateTimeKey, LocalTime, NoFormat and Format fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;What am I doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 14:40:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parsing-the-timestamps-in-the-audit-logs/m-p/1431508#M609403</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-05T14:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing the timestamps in the audit logs</title>
      <link>https://community.qlik.com/t5/QlikView/Parsing-the-timestamps-in-the-audit-logs/m-p/1431509#M609405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=TimeStamp(Timestamp#(PurgeChar(Timestamp, 'TZ'), 'YYYYMMDDhhmmss.fff'))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 14:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parsing-the-timestamps-in-the-audit-logs/m-p/1431509#M609405</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-05T14:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing the timestamps in the audit logs</title>
      <link>https://community.qlik.com/t5/QlikView/Parsing-the-timestamps-in-the-audit-logs/m-p/1431510#M609407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's done it, thanks. Guess QlikView doesn't like literals in format strings for some reason!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 14:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parsing-the-timestamps-in-the-audit-logs/m-p/1431510#M609407</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-05T14:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing the timestamps in the audit logs</title>
      <link>https://community.qlik.com/t5/QlikView/Parsing-the-timestamps-in-the-audit-logs/m-p/1431511#M609409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have seen it working in somewhere, but it didn't work for me as well... that's why I thought it might make sense to remove T and Z...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 14:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parsing-the-timestamps-in-the-audit-logs/m-p/1431511#M609409</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-05T14:56:24Z</dc:date>
    </item>
  </channel>
</rss>

