All Apps and Add-ons

Getting errors when upgrading to Microsoft Azure Add-on version 2.1: "No logs ERROR401 Client Error", "ERROR ExecProcessor".

njytrde
Explorer

Hello all,

I recently upgraded the Microsoft Azure Add-on TA to version 2.1. Not only did it break the configuration, but there are also some added permissions that need to be applied on the Azure portal side. I worked with someone on our Windows AD team who has the necessary access but he did not see what is referenced below in the details of the Add-on.

https://splunkbase.splunk.com/app/3757/

Microsoft Azure Active Directory Sign-ins Microsoft Graph Read all audit log data
Windows Azure Active Directory "(Application) Read directory data

(Delegated) Read directory data"
Microsoft Azure Active Directory Users Microsoft Graph Read all audit log data
Windows Azure Active Directory "(Application) Read directory data

(Delegated) Read directory data"
Microsoft Azure Active Directory Audit Microsoft Graph Read all audit log data
Windows Azure Active Directory "(Application) Read directory data

(Delegated) Read directory data"

These are the errors in the internal logs. Any ideas?

04-28-2020 15:58:03.014 -0400

ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/TA-MS-AAD/bin/MS_AAD_audit.py" 

ERROR401 Client Error: Unauthorized for url: https://graph.microsoft.com/beta/auditLogs/directoryAudits?

$orderby=activityDateTime&$filter=activityDateTime+gt+2020-04-21T15:58:02.316173Z+and+activityDateTime+le+2020-04-28T19:51:02.559995Z
0 Karma
1 Solution

mwyman_splunk
Splunk Employee
Splunk Employee

I'm curious why it has "beta" instead of an api version, like v1.0, in the url that is returned in the error:

ERROR401 Client Error: Unauthorized for url: https://graph.microsoft.com/beta/

View solution in original post

0 Karma

mwyman_splunk
Splunk Employee
Splunk Employee

I'm curious why it has "beta" instead of an api version, like v1.0, in the url that is returned in the error:

ERROR401 Client Error: Unauthorized for url: https://graph.microsoft.com/beta/

0 Karma

njytrde
Explorer

So it turns out, the problem was, when I updated the TA version to 2.1 for Microsoft Azure Add-on for Splunk, the API permissions changed.

Once Directory.Read.All and AuditLog.Read.All was added for the application and delegation for the microsoft graph, the logs started ingesting normally again.

0 Karma

mwyman_splunk
Splunk Employee
Splunk Employee

I'm curious why it has "beta" instead of an api version, like v1.0, in the url that is returned in the error:

ERROR401 Client Error: Unauthorized for url: https://graph.microsoft.com/be

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...