Skip to content

Conversation

@gpop63
Copy link
Contributor

@gpop63 gpop63 commented Nov 16, 2025

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

image

@gpop63 gpop63 self-assigned this Nov 16, 2025
@gpop63 gpop63 added the Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] label Nov 16, 2025
@gpop63 gpop63 requested a review from agithomas November 16, 2025 21:18
@agithomas
Copy link
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
Copy link
Contributor

agithomas commented Nov 17, 2025

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
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
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
Contributor 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 👍

@gpop63 gpop63 requested a review from agithomas November 18, 2025 12:12
@elastic-vault-github-plugin-prod

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@gpop63 gpop63 marked this pull request as ready for review November 19, 2025 10:44
@gpop63 gpop63 requested a review from a team as a code owner November 19, 2025 10:44
@agithomas
Copy link
Contributor

Please add support for S3 as the log data source.

changes:
- description: Add `runtime_application_logs` data stream.
type: enhancement
link: https://github.com/elastic/integrations/pull/999
Copy link
Contributor

Choose a reason for hiding this comment

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

Please fix the PR link

@agithomas
Copy link
Contributor

Kindly update the dashboard screenshots as well.

@gpop63
Copy link
Contributor Author

gpop63 commented Nov 19, 2025

Kindly update the dashboard screenshots as well.

@agithomas when I try to get metrics there's no data, only the logs lenses get data so the dashboard will look empty.

@elasticmachine
Copy link

💚 Build Succeeded

History

cc @gpop63

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. 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.

4 participants