<?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: Auth logs not shown under nodejs? in APIs</title>
    <link>https://community.cisco.com/t5/apis/auth-logs-not-shown-under-nodejs/m-p/4877675#M145</link>
    <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Perfect, thanks a lot &lt;IMG width="20" height="20" src="https://community.cisco.com/legacyfs/online/ciscoduo/cdn_emojis/twitter/slight_smile.png" style="display : inline;" /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 24 Nov 2021 08:57:04 GMT</pubDate>
    <dc:creator>Ruben_Cardenal</dc:creator>
    <dc:date>2021-11-24T08:57:04Z</dc:date>
    <item>
      <title>Auth logs not shown under nodejs?</title>
      <link>https://community.cisco.com/t5/apis/auth-logs-not-shown-under-nodejs/m-p/4877673#M143</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;We have this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="lang-auto"&gt;client.jsonApiCall('GET', '/admin/v2/logs/authentication', { mintime: '1637616411572', maxtime: '1637702811573', users: '■■■■■■■■■■■■■■■■■■■■' }, console.log);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;which returns:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="lang-auto"&gt;{
  response: {
    authlogs: [ [Object], [Object], [Object] ],
    metadata: { next_offset: [Array], total_objects: 3 }
  },
  stat: 'OK'
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How do I get to see the contents of those “Object” fields?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Nov 2021 21:29:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/auth-logs-not-shown-under-nodejs/m-p/4877673#M143</guid>
      <dc:creator>Ruben_Cardenal</dc:creator>
      <dc:date>2021-11-23T21:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Auth logs not shown under nodejs?</title>
      <link>https://community.cisco.com/t5/apis/auth-logs-not-shown-under-nodejs/m-p/4877674#M144</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Try using util.inspect with both &lt;CODE&gt;maxArrayLength: null, depth: null&lt;/CODE&gt;. My output went from:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="lang-auto"&gt;{
  authlogs: [
    {
      access_device: [Object],
      alias: '',
      application: [Object],
      auth_device: [Object],
      email: '',
      event_type: 'authentication',
      factor: 'duo_push',
      isotimestamp: '2021-11-15T17:53:15.175050+00:00',
      ood_software: null,
      reason: 'user_mistake',
      result: 'denied',
      timestamp: 1636998795,
      trusted_endpoint_status: 'not trusted',
      txid: '9e3319e3-7876-nnnn-a485-a5f1afd9ed06',
      user: [Object]
    }
  ],
  metadata: {
    next_offset: [ '1636998795175', '9e3319e3-7876-nnnn-a485-a5f1afd9ed06' ],
    total_objects: 1
  }
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="lang-auto"&gt;{
  authlogs: [
    {
      access_device: {
        browser: 'Chrome',
        browser_version: '95.0.4638.69',
        epkey: 'EPblahblah',
        flash_version: 'uninstalled',
        hostname: null,
        ip: '136.n.n.n',
        is_encryption_enabled: 'unknown',
        is_firewall_enabled: 'unknown',
        is_password_set: 'unknown',
        java_version: 'uninstalled',
        location: { city: 'Austin', country: 'United States', state: 'Texas' },
        os: 'Linux',
        os_version: '',
        security_agents: 'unknown'
      },
      alias: '',
      application: { key: 'DIblahblah', name: 'Web SDK 145' },
      auth_device: {
        ip: '136.n.n.n',
        location: { city: 'Austin', country: 'United States', state: 'Texas' },
        name: 'Motorola Moto G Power'
      },
      email: '',
      event_type: 'authentication',
      factor: 'duo_push',
      isotimestamp: '2021-11-15T17:53:15.175050+00:00',
      ood_software: null,
      reason: 'user_mistake',
      result: 'denied',
      timestamp: 1636998795,
      trusted_endpoint_status: 'not trusted',
      txid: '9e3319e3-7876-nnnn-a485-a5f1afd9ed06',
      user: { groups: [], key: 'DUblahblah', name: 'someuser' }
    }
  ],
  metadata: {
    next_offset: [ '1636998795175', '9e3319e3-7876-nnnn-a485-a5f1afd9ed06' ],
    total_objects: 1
  }
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I guess I no longer can claim “zero node experience”. &lt;IMG width="20" height="20" src="https://community.cisco.com/legacyfs/online/ciscoduo/cdn_emojis/twitter/slight_smile.png" style="display : inline;" /&gt;&lt;/P&gt;
&lt;P&gt;FWIW I have just been riffing off the demo duo_admin.js script, and I changed the console output lines to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="lang-auto"&gt;        res = res.response;
        const util = require('util')
        console.log(util.inspect(res, { maxArrayLength: null, depth: null }));
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Nov 2021 23:54:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/auth-logs-not-shown-under-nodejs/m-p/4877674#M144</guid>
      <dc:creator>DuoKristina</dc:creator>
      <dc:date>2021-11-23T23:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Auth logs not shown under nodejs?</title>
      <link>https://community.cisco.com/t5/apis/auth-logs-not-shown-under-nodejs/m-p/4877675#M145</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Perfect, thanks a lot &lt;IMG width="20" height="20" src="https://community.cisco.com/legacyfs/online/ciscoduo/cdn_emojis/twitter/slight_smile.png" style="display : inline;" /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Nov 2021 08:57:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/auth-logs-not-shown-under-nodejs/m-p/4877675#M145</guid>
      <dc:creator>Ruben_Cardenal</dc:creator>
      <dc:date>2021-11-24T08:57:04Z</dc:date>
    </item>
  </channel>
</rss>

