<?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 Confirmation of audit log in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Confirmation-of-audit-log/m-p/241905#M13474</link>
    <description>&lt;P&gt;I'd like to check the audit log using python module.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;TEAM_AUDIT_TOKEN = 'xxxxxxx'
dbx_team = dropbox.DropboxTeam(TEAM_AUDIT_TOKEN)
dbx_user = dbx_team.as_user("dbmid:xxxxxx")
end_time = dt.datetime.now()
start_time = end_time - dt.timedelta(hours=2)
check_times = dropbox.team_common.TimeRange(start_time,end_time)
res = dbx_user.team_log_get_events(
limit=None,
account_id=None,
time=check_times,
category=dropbox.team_log.EventCategory.logins)&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;It's possible to acquire below.&lt;/P&gt;
&lt;PRE&gt;GetTeamEventsResult(events=None, cursor='xxxxxxxxxxxxxx, has_more=False)&lt;/PRE&gt;
&lt;P&gt;I want you to tell me how log can be acquired after this.&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:19:18 GMT</pubDate>
    <dc:creator>J_Matsumoto</dc:creator>
    <dc:date>2019-05-29T09:19:18Z</dc:date>
    <item>
      <title>Confirmation of audit log</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Confirmation-of-audit-log/m-p/241905#M13474</link>
      <description>&lt;P&gt;I'd like to check the audit log using python module.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;TEAM_AUDIT_TOKEN = 'xxxxxxx'
dbx_team = dropbox.DropboxTeam(TEAM_AUDIT_TOKEN)
dbx_user = dbx_team.as_user("dbmid:xxxxxx")
end_time = dt.datetime.now()
start_time = end_time - dt.timedelta(hours=2)
check_times = dropbox.team_common.TimeRange(start_time,end_time)
res = dbx_user.team_log_get_events(
limit=None,
account_id=None,
time=check_times,
category=dropbox.team_log.EventCategory.logins)&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;It's possible to acquire below.&lt;/P&gt;
&lt;PRE&gt;GetTeamEventsResult(events=None, cursor='xxxxxxxxxxxxxx, has_more=False)&lt;/PRE&gt;
&lt;P&gt;I want you to tell me how log can be acquired after this.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:19:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Confirmation-of-audit-log/m-p/241905#M13474</guid>
      <dc:creator>J_Matsumoto</dc:creator>
      <dc:date>2019-05-29T09:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Confirmation of audit log</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Confirmation-of-audit-log/m-p/242048#M13477</link>
      <description>&lt;P&gt;Is time of the log record late for 24 hours?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;start_time = end_time - dt.timedelta(hours=33)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(24 hours before, +JST-9:00)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it was changed, it could be acquired.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 14:32:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Confirmation-of-audit-log/m-p/242048#M13477</guid>
      <dc:creator>J_Matsumoto</dc:creator>
      <dc:date>2017-09-18T14:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Confirmation of audit log</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Confirmation-of-audit-log/m-p/242061#M13483</link>
      <description>&lt;P&gt;It looks like the issue is the timezone that datetime.now is using by default. When interacting with the API, you should use UTC. So, instead of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;end_time = dt.datetime.now()&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you&amp;nbsp;can use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;end_time = dt.datetime.utcnow()&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 15:29:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Confirmation-of-audit-log/m-p/242061#M13483</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-09-18T15:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Confirmation of audit log</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Confirmation-of-audit-log/m-p/242166#M13497</link>
      <description>&lt;P&gt;Greg&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm very thankful.&lt;/P&gt;
&lt;P&gt;Can the present designation audit log be acquired only after 24 hours?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 01:06:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Confirmation-of-audit-log/m-p/242166#M13497</guid>
      <dc:creator>J_Matsumoto</dc:creator>
      <dc:date>2017-09-19T01:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Confirmation of audit log</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Confirmation-of-audit-log/m-p/242283#M13506</link>
      <description>I'm not sure I understand your question. Can you elaborate? There shouldn't be any significant delay on the audit log, and you can request it whenever you want, for whatever time range you want.</description>
      <pubDate>Tue, 19 Sep 2017 17:36:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Confirmation-of-audit-log/m-p/242283#M13506</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-09-19T17:36:25Z</dc:date>
    </item>
  </channel>
</rss>

