Splunk Cloud Platform

Defender ATP App issue


I am using below app to pull the alerts from ATP to Splunk, which actually gives functionality to pull the data directly from ATP, alert with evidence or with associated user or any of the data that is supported by Advanced Hunting query.


But this is not consistent it actually stops in between, then i need to disable and reenabled the inputs to get this work again.

Setup is pretty simple, set the id and then to set the Advanced hunting query from ATP.

This app is really nice and can fulfil lot of use case of pulling the data from ATP other than only alerts, so I really wanted to get this worked consistently as do not wanted to skip the alerts from ATP to Splunk where our entire Ops team relies to take further action on the alert.

Have also raised a case with Splunk support but this add on is not supported by the support so I am raising the concern over here if anyone has the same issue and if have solved the same.

@jorritf If possible can you please help here as I can see you have developed the application, Thank you in advanced.

Labels (1)
0 Karma


I have Splunk Cloud Version: 8.1.2011.1 which was recently upgraded but it was not working on 7.2.9 meaning as stated above the application was stuck until i disabled and re-enabled the same.

I too did not find any error logs under the folder have used below query to check, also with this setup Splunk 8.1 it did works for me at-least pulling logs to Splunk but the main issue remains the same gets stuck in between.



index=_internal (source=/opt/splunk/var/log/splunk/ta_defender_atp_hunting_defender_hunting_query.log* OR source=/opt/splunk/var/log/splunk/ta_ms_defender_microsoft_defender_atp_alerts.log*)
| rex "^.*\,\d{3}\s(?<log_level>\w+)"
| cluster showcount=true labelonly=t
| stats earliest(_time) AS EARLIEST latest(_time) AS LATEST max(cluster_count) AS COUNT values(log_level) AS LEVEL first(_raw) AS MESSAGE BY cluster_label
| convert ctime(EARLIEST) ctime(LATEST)
| sort - COUNT


0 Karma

Path Finder

Ok thanks, I haven't tested it on Splunk 8.1, and given the other commenters experience I excpect you to experience the same issue, probably in splunkd.log instead of the TA logging because it doesn't even get that far.

If you provide me privately with a client id and client secret to test with I can look into it, but don't expect a quick turnaround as I have other stuff to do as well. 

0 Karma

Path Finder

I haven't seen this behaviour before. But I must admit that I cancelled the expensive Windows E5 subscription I used for developing. At least 6 months ago I can say "it worked for me".

Can you share some more details about your setup? Splunk version? Any clue-giving errors in var/log/splunk/ta_defender...log?

0 Karma


Greetings and thank you for raising the questions and to @jorritf  for a quick response.  I'm encountering similar issues unfortunately when attempting to collect Defender ATP telemetry.  I had upgraded to Splunk 8.1.1 and think there may be some issues going on with Python versions after the upgrade.  There was another Splunk Answers post about adding a stanza to set the python version but this didn't help out.   On the heavy forwarder, when attempting to view the configuration tabs in the app, I get the "spinning wheel of doom" and no log file from the app is generated from the path below.  I hope I'm not butting into the original post, but feel the issues could be related and would like to help if possible.

I was able to catch this error from /opt/splunk/var/log//splunk/splunkd.log when accessing the app if this may help:

ERROR ScriptRunner - stderr from '/opt/splunk/bin/python3.7 /opt/splunk/bin/runScript.py setup': File "/opt/splunk/etc/apps/TA-defender-atp-hunting/bin/ta_defender_atp_hunting/splunktaucclib/rest_handler/endpoint/validator.py", line 388

0 Karma

Path Finder

This seems like a separate issue. I haven't tested it on Splunk 8.1. Given the fact that it defaults to python.version=3, and the fact that some of the libraries in the addon are py2 only, I doubt it will work without additional development work.

Given that this is an easily reproducible issue I'm willing to make it work on for Splunk 8.1 installs, but only if you can provide me privately with a client id and client secret so I can test.

0 Karma
Get Updates on the Splunk Community!

Security Highlights: September 2022 Newsletter

 September 2022 The Splunk App for Fraud Analytics (SFA) is now Splunk SupportedUse your existing Splunk ...

Platform Highlights | September 2022 Newsletter

 September 2022 What’s New in 9.0 and How to UpgradeGet a walk through of what is new Splunk Enterprise 9.0 ...

Observability Highlights | September 2022 Newsletter

 September 2022 Splunk Observability SuiteAccess to "Classic" SignalFx Interface Will be Removed on Sept 30, ...