All Apps and Add-ons

New version 1.0.3 gives a request error when querying the Microsoft Graph

raoul
Path Finder

I upgraded to version 1.0.3 and now I get the following error in the _internal log:

07-27-2018 14:30:01.195 +0000 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/TA-MS-AAD/bin/MS_AAD_signins.py" HTTP Request error: 400 Client Error: Bad Request for url: https://graph.windows.net/notTheRealDomain.onmicrosoft.com/activities/signinEvents?api-version=beta&...

0 Karma
1 Solution

jconger
Splunk Employee
Splunk Employee

This is most likely an issue with a previous checkpoint Date/Time value. Try disabling the existing input and creating a new input specifying a Date/Time to start gathering data.

View solution in original post

ajayshikant2782
New Member

I was having the same issue but only running the code directly from Azure (inside an Azure Website). I solved upgrading 'Microsoft.IdentityModel.Clients.ActiveDirectory' package to '2.6.1-alpha'. Linksys Support

Should you have any suggestions, please let me know.

0 Karma

jconger
Splunk Employee
Splunk Employee

This is most likely an issue with a previous checkpoint Date/Time value. Try disabling the existing input and creating a new input specifying a Date/Time to start gathering data.

jralston
Explorer

Can someone provide me a sample timestamp that works? Having trouble with this as well.

0 Karma

ChrisBell04
Communicator

The following is working for us

\TA-MS-AAD\local\inputs.conf
[MS_AAD_signins://Tenant_X]
index = mscs
interval = 60
max_records = 10
start_date = 2018-07-19T00:00:00Z
tenant_domain = X.onmicrosoft.com
0 Karma

shirishkamat84
Path Finder

Thanks, it worked for me as well

0 Karma

raoul
Path Finder

Thanks. That did work.

0 Karma

ChrisBell04
Communicator

Would be great if the code handled this 'gotcha' during an upgrade. Also if it was in the upgrade notes so a user doesnt need to search the forum for a solution.

0 Karma

swong2
Path Finder

I got the same error after upgraded to 1.0.3.

I added a debug statement to the script and it showed the following error response:

DEBUG pid=3794 tid=MainThread file=base_modinput.py:log_debug:286 | {u'code': u'', u'message': u"The time zone information is missing on the DateTimeOffset value '2018-07-27T13:49:59.986522'. A DateTimeOffset value must contain the time zone information."}

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!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

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 ...