Difference when comparing CloudWatch and OpenSearch query results #175
alexzon-tr
started this conversation in
General
Replies: 2 comments 4 replies
-
looking into it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi there, could you please expand your time range and filter one specific event id in OpenSearch that you mentioned about others 70 that are not being ingested? Just want to make sure that the logs have not been ingested ever before, because we noticed that when CloudTrail writing the same log into both CloudWatch and S3 bucket, the timestamps are different. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm ingesting CloudTrail Logs into OpenSearch using a centralized S3 bucket.
When trying to create an alarm for when I detect the
eventName:CreateUser
event, I noticed that I couldn't find these events inside OpenSearch.I've searched for the same events directly from CloudTrail, on CloudWatch Logs, and even inside the S3 Bucket. I was able to find the events in the 3 locations, as expected.
I did the same test but ingesting from CloudWatch Logs to another OpenSearch index. Same results.
Going a little deeper, I've made a query filtering for my user and
eventSource:iam.amazonaws.com
, exported the results to a spreadsheet, and compared them.CloudWatch Logs returns much more results (80) than OpenSearch (10), including the
CreateUser
event I was interested in the first place.Comparing the
eventID
field, I could find the 10 events in the bigger list, among others 70 that are not being ingested.I've looked for Lambda or SQS errors but couldn't find anything.
Any idea why this behavior?
Beta Was this translation helpful? Give feedback.
All reactions