Skip to content

[amazon_bedrock_agentcore] add runtime_application_logs data stream - #15991

Merged
54 commits merged into
mainfrom
unknown repository
Jan 8, 2026
Merged

54 commits merged into
mainfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Nov 16, 2025 •

Copy link
Copy Markdown

Overview

This PR adds the runtime_application_logs data stream. It also updates the agent runtime dashboard with a few visualizations for logs.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • 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

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

  • Closes: elastic/obs-integration-team/issues/685

Screenshots

@ghost ghost self-assigned this Nov 16, 2025
@ghost ghost added the Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] label Nov 16, 2025
@ghost
ghost requested a review from agithomas November 16, 2025 21:18
@agithomas

Copy link
Copy Markdown
Contributor

Suggested mapping for an input such as

{
    "resource_arn": "arn:aws:bedrock-agentcore:us-east-1:123456789012:runtime/example-agent-XXXXXXXXXX",
    "event_timestamp": 1763356735263,
    "account_id": "123456789012",
    "request_id": "d904a611-812d-43bd-9154-29dffe16090c",
    "session_id": "142e241a-567a-4ea1-9c8a-e1a0c1e5bcbd",
    "span_id": "c582eb7f19b33c86",
    "trace_id": "a3962c1ef0081a3724b65af6e44632d0",
    "service_name": "AgentCoreCodeRuntime",
    "operation": "InvokeAgentRuntime",
    "request_payload": {
        "prompt": "[REDACTED_USER_PROMPT]",
        "actor_id": "DEFAULT"
    }
}

as

{
  "@timestamp": "2025-11-25T15:25:35.263Z",
  "gen_ai": {
    "system": "aws_bedrock_agentcore",
    "operation": {
      "name": "InvokeAgentRuntime"
    },
    "provider": {
      "name": "aws"
    },
    "conversation": {
      "id": "142e241a-567a-4ea1-9c8a-e1a0c1e5bcbd"
    },
    "prompt": "[REDACTED_USER_PROMPT]"
  },
  "aws": {
    "bedrock_agentcore": {
      "request_id": "d904a611-812d-43bd-9154-29dffe16090c",
      "resource_arn": "arn:aws:bedrock-agentcore:us-east-1:123456789012:runtime/example-agent-XXXXXXXXXX",
      "account_id": "123456789012",
      "actor_id": "DEFAULT"
    }
  },
  "trace": {
    "id": "a3962c1ef0081a3724b65af6e44632d0"
  },
  "span": {
    "id": "c582eb7f19b33c86"
  },
  "service": {
    "name": "bedrock-agentcore"
  },
  "event": {
    "action": "InvokeAgentRuntime",
    "category": ["api"],
    "type": ["access"]
  },
  "cloud": {
    "provider": "aws",
    "service": {
      "name": "bedrock"
    },
    "account": {
      "id": "123456789012"
    }
  }
}

@agithomas

agithomas commented Nov 17, 2025 •

Copy link
Copy Markdown
Contributor
image
  1. Under the logs overview section, the most useful information is gen_ai.prompt value. Could you include it? The ordering of the columns could be
  • timestamp
  • Resource ARN
  • gen_ai.prompt
  • request_id
  • session_id
  • trace_id
  1. The request_id, session_id, trace_id are values having high cardinality. I am doubtful about the practical benefit in having the following panels
  • Reqeuest by Session ID
  • Requests for RequestID
  • Requests by Session ID

3, Request by ResourceARN may not be needed too, as the metrics section of the dashboard is already covering this part.

@agithomas

Copy link
Copy Markdown
Contributor
image

Please rename Runtime logs as Application logs. Agentcore runtime has two logs - Application logs and runtime logs. This dataset covers Application logs, not runtime logs.
Please remove the panel title - Logs overview.

@andrewkroh andrewkroh added New Integration Issue or pull request for creating a new integration package. dashboard Relates to a Kibana dashboard bug, enhancement, or modification. documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. Integration:aws_bedrock_agentcore Amazon Bedrock AgentCore labels Nov 17, 2025
@andrewkroh andrewkroh removed the New Integration Issue or pull request for creating a new integration package. label Nov 17, 2025

Amazon Bedrock AgentCore runtime application logs provide detailed insights into agent execution, decision-making processes, and operational events. The integration collects comprehensive log data from your intelligent agents to help you understand agent behavior and troubleshoot issues.

For more details about enabling logs for AgentCore, check the [Amazon Bedrock AgentCore Observability Guide](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/observability-view.html).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do you think, it will be good to mention the steps needed to fetch the log_group_arn, needed for configuring this dataset?

As it is the same steps for all the log-based datasets, maybe a common section (may be under What do I need to use this integration?) should suffice.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I've added a small section to explain how to get the log group arn 👍

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you organise the order of column as follows

  • @timestamp
  • Request ID
  • Agent name (Please follow sentence case for the column title)
  • Endpoint name (Please follow sentence case for the column title)
  • Request
  • Response (I understand this is null presently, let's include a placeholder)
  • Session ID
  • Trace ID
  • Remove Resource ARN (Agent name + Endpoint points to the same) column

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@daniela-elastic , do you recomment leaving the placeholder for the Response (response payload data presently is empty for the log data received from AWS cloudwatch logs)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@agithomas we don’t know the structure or keys of response_payload, it could be a string object etc so this might break the dashboard. Do you think we should add it?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Will the response always be empty? If so then we should add it later when the logs do support responses. If not then we should add it even if in some cases there are no responses.

@andrewkroh andrewkroh added the dashboard Relates to a Kibana dashboard bug, enhancement, or modification. label Dec 15, 2025
copy_from: aws.bedrock_agentcore.body.request_payload
ignore_failure: true

# Flatten body.request_payload to request_payload only when prompt is a string

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think, this comment is invalid - after removing the condition present previously.

@andrewkroh andrewkroh removed the dashboard Relates to a Kibana dashboard bug, enhancement, or modification. label Jan 8, 2026
@ghost
ghost enabled auto-merge (squash) January 8, 2026 14:54
@ghost
ghost merged commit 0c881be into elastic:main Jan 8, 2026
9 checks passed
@elasticmachine

Copy link
Copy Markdown

💚 Build Succeeded

History

cc @gpop63

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Package aws_bedrock_agentcore - 0.5.0 containing this change is available at https://epr.elastic.co/package/aws_bedrock_agentcore/0.5.0/

ghost pushed a commit that referenced this pull request Jan 22, 2026
…15991 (#16587)

* add gateway data stream

* bump package version

* update readme

* fix pr id

* rename body field

* improve pipeline

* add gateway suffix

* update readme

* improve title
jakubgalecki0 pushed a commit to jakubgalecki0/integrations that referenced this pull request Feb 19, 2026
…elastic#15991)

* Amazon Bedrock AgentCore new integration package

* Updated PR link, removed unused configs

* Updated dashboard conditions

* Updated the readme with the name of the agentcore components

* add logs data stream

* update dashboard

* address comments

* update

* remove sample logo

* fix policy

* add observability category

* address comments

* fix pipeline indenting

* improve field descriptions

* fix sample event

* update sample event

* add aws-s3 input

* improve policy templates descriptions

* fix pr id

* update dashboard img

* update dashboard

* update pipeline

* update sample event

* add tags for debugging

* add agent and endpoint names

* update fields mappings and pipeline

* move gen_ai fields

* fix tags

* update sample event

* flatten response payload

* update dashboard

* update dashboard image

* handle request and response of multiple types

* update fields mappings and pipeline

* update readme

* update pipeline

* update dashboard

* revert dashboard

* revert dashboard img

* fix dashboard img

* remove comment

* update version

* update version

* update readme

* fix changelog

---------

Co-authored-by: Agi K Thomas <agi.thomas@elastic.co>
Co-authored-by: Agi K Thomas <101976829+agithomas@users.noreply.github.com>
jakubgalecki0 pushed a commit to jakubgalecki0/integrations that referenced this pull request Feb 19, 2026
…lastic#15991 (elastic#16587)

* add gateway data stream

* bump package version

* update readme

* fix pr id

* rename body field

* improve pipeline

* add gateway suffix

* update readme

* improve title
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. enhancement New feature or request Integration:aws_bedrock_agentcore Amazon Bedrock AgentCore Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants