Skip to content

Conversation

mykola-elastic
Copy link
Contributor

@mykola-elastic mykola-elastic commented Oct 14, 2025

Content pack for EDOT Cloud Forwarder for AWS - CloudTrail Logs - Dashboard

Redo of AWS CloudTrail dashboard from AWS integration but using data from https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/encoding/awslogsencodingextension#cloudtrail-log-record-fields

Proposed commit message

See title.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices
  • Add auto-install via discovery.datasets

Screenshots

Screenshot of AWS CloudTrail dashboard from AWS integration (for comparison)

filebeat-aws-cloudtrail

Screenshot of the dashboard for content pack

screenshot 1 screenshot 2

@mykola-elastic
Copy link
Contributor Author

The EDOT Cloud Forwarder page doesn't yet contain anything about CloudTrail Logs

@mykola-elastic mykola-elastic self-assigned this Oct 14, 2025
@mykola-elastic mykola-elastic added enhancement New feature or request New Integration Issue or pull request for creating a new integration package. Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. dashboard Relates to a Kibana dashboard bug, enhancement, or modification. labels Oct 14, 2025
@mykola-elastic mykola-elastic marked this pull request as ready for review October 15, 2025 05:39
@mykola-elastic mykola-elastic requested a review from a team as a code owner October 15, 2025 05:39
@mykola-elastic
Copy link
Contributor Author

ping @ishleenk17 @daniela-elastic marked this one ready for review. In the PR description there are screenshots of the existing dashboard for Cloudtrail logs (from AWS integration), and the one I made with ESQL using data from aws.cloudtrail.otel data_stream for this content pack

@mykola-elastic
Copy link
Contributor Author

@daniela-elastic @ishleenk17 I have a few questions:

  • Is it OK for pies/donuts to display all the data without putting the rest to "Others" category?
  • Most of the events come with User ID set to null (see the panel on the bottom right). Should I display them or remove from the table?
  • Who else can I invite for review?

@mykola-elastic mykola-elastic requested a review from gpop63 October 15, 2025 05:47
@ishleenk17 ishleenk17 requested a review from ShourieG October 15, 2025 05:47
@ishleenk17
Copy link
Member

  • Is it OK for pies/donuts to display all the data without putting the rest to "Others" category?

Is this because there is lesser data to categorize ? Is there is enough data tp categorize, we shoul dmaybe do the top 10 and put rest to others.

  • Most of the events come with User ID set to null (see the panel on the bottom right). Should I display them or remove from the table?

If user ID's are NULL mostly, I would assume its not of much relevance to the customer/user ?

  • Who else can I invite for review?

Added @ShourieG from Security team.

@ishleenk17
Copy link
Member

ishleenk17 commented Oct 15, 2025

Use the word " OpenTelemetry" in the Title of the dashboard.
What are the titlees we have used till now for other dashbaords ? I think we should be consistent in how we name them

@mykola-elastic
Copy link
Contributor Author

In the dashboard titles:

  • system_otel uses OTel
  • nginx_otel, mysql_otel, iis_otel, and aws elb content pack use OTEL

@mykola-elastic
Copy link
Contributor Author

mykola-elastic commented Oct 15, 2025

Is this because there is lesser data to categorize ? Is there is enough data tp categorize, we shoul dmaybe do the top 10 and put rest to others.

I haven't figured out a way yet how to do LIMIT while having the Others category to display the sum of those which didn't get into the "limit".
There are no configuration options on pie chart to do this, this needs to be done in ES|QL with some complex logic it seems

UPDATE: Confirmed, there is no way to do that in ES|QL at the moment - to show top 10 results and group the rest as "Others" in Kibana pie chart


The AWS CloudTrail OpenTelemetry Assets allow you to monitor [Amazon CloudTrail logs](https://docs.aws.amazon.com/cloudtrail/). With AWS CloudTrail, you can monitor your AWS deployments in the cloud by getting a history of AWS API calls for your account, including API calls made by using the AWS Management Console, the AWS SDKs, the command line tools, and higher-level AWS services.

The [EDOT Cloud Forwarder for AWS](https://www.elastic.co/docs/reference/opentelemetry/edot-cloud-forwarder/aws) enables you to collect **CloudTrail Logs** from Amazon S3 and forward them directly into Elastic Observability. Use this integration to visualize that data in Kibana, create alerts to notify you if something goes wrong, and reference logs when troubleshooting an issue.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we exclude "from Amazon S3" in case in the future we enable other ways to get the logs? CC @ishleenk17

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@daniela-elastic : Since currently we are supporting only ECF, I think its fine to mention this way.
when we update it with other flows, we will be updating our README's as well


## What do I need to use this integration?

You need an Elastic Observability project (**Serverless only**) for storing, analyzing, and visualizing your ELB logs.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do we plan to update this if in the future ECF supports more than just serverless? CC @ishleenk17

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When ECF supports more than serverless they will do that with a particular new stack version.
We will also update our kibana version then and along with that the README as well

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have a process to ensure that we don't miss this and then proactively update the README?

@ishleenk17
Copy link
Member

ishleenk17 commented Oct 15, 2025

UPDATE: Confirmed, there is no way to do that in ES|QL at the moment - to show top 10 results and group the rest as "Others" in Kibana pie chart

So, its an ESQL issue. In KQL it would be possible right ?

@mykola-elastic
Copy link
Contributor Author

So, its an ESQL issue. In KQL it would be possible right ?

Yes, it is possible to do using Lens (screenshot below).
Though I suggest sticking with ES|QL and fix it when such feature appears. The package version is still 0.1.0 and maybe being consistent is better in this case. What do you think?

Screenshot 2025-10-15 at 12 36 17

@ishleenk17
Copy link
Member

So, its an ESQL issue. In KQL it would be possible right ?

Yes, it is possible to do using Lens (screenshot below). Though I suggest sticking with ES|QL and fix it when such feature appears. The package version is still 0.1.0 and maybe being consistent is better in this case. What do you think?

Screenshot 2025-10-15 at 12 36 17

If we don't limit it, its looking cluttered and TMI for the customer.
I would let @daniela-elastic take the final call on this.

@mykola-elastic
Copy link
Contributor Author

mykola-elastic commented Oct 16, 2025

@daniela-elastic ESQL (top) vs LENS (bottom):
Screenshot 2025-10-16 at 09 28 55

Note: in the "User agents" the labels for ESQL panel are short and nice as I used REPLACE with regex to remove clutter. In Lens I have to use labels (user agents) as they are in the data

@daniela-elastic
Copy link

@daniela-elastic ESQL (top) vs LENS (bottom): Screenshot 2025-10-16 at 09 28 55

Note: in the "User agents" the labels for ESQL panel are short and nice as I used REPLACE with regex to remove clutter. In Lens I have to use labels (user agents) as they are in the data

If we already have a workaround for ESQL suggest keeping this and submitting a request to platform / Kibana team to show top 10 results and group the rest as "Others" in Kibana pie chart (submit a ticket and also add to kibana wishlist spreadsheet)

@mykola-elastic
Copy link
Contributor Author

mykola-elastic commented Oct 16, 2025

Opened issue in Kibana elastic/kibana#239279 (and added to the wishlist)

@elasticmachine
Copy link

💚 Build Succeeded

History

cc @mykola-elastic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dashboard Relates to a Kibana dashboard bug, enhancement, or modification. documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. enhancement New feature or request New Integration Issue or pull request for creating a new integration package. Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants