kfaraz commented on code in PR #15480:
URL: https://github.com/apache/druid/pull/15480#discussion_r1415641661


##########
indexing-service/src/main/java/org/apache/druid/indexing/overlord/http/OverlordResource.java:
##########
@@ -225,18 +226,31 @@ public Response taskPost(final Task task, @Context final 
HttpServletRequest req)
         taskQueue -> {
           try {
             taskQueue.add(task);
+
+            // Do an audit only if this API was called by a user and not by 
internal services
+            if (author != null && !author.isEmpty()) {
+              auditManager.doAudit(
+                  AuditEvent.builder()
+                            .key(task.getDataSource())
+                            .type("ingestion.batch")

Review Comment:
   Please see this comment regarding type names:
   https://github.com/apache/druid/pull/15480#discussion_r1415637236



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to