MetorialDocs

Set up LogDNA in Metorial for Claude, ChatGPT and Cursor

Share LogDNA with your team in Claude, ChatGPT and Cursor through Metorial: service key sign-in, 34 tools (15 read-only).

To give your team LogDNA in Claude, ChatGPT, Cursor and other AI clients, an admin shares the LogDNA integration in a Metorial portal, and each person connects with a service key. Agents can search and download paginated JSONL log exports, ingest logs with separate credentials, and manage saved views, preset alert templates, boards, categories, exclusion rules, archive configuration, ingestion controls, and byte usage reports. The integration has 34 tools, 15 read-only, 8 write and 11 destructive, plus 1 trigger.

What you'll learn

  • How an admin shares LogDNA in a portal and how each person connects
  • What LogDNA asks for when you connect, and where to find it
  • How to keep the 15 read-only tools and reject the other 19

Before you start

Sign-in methods

MethodTypeWhat a person provides
Service Key (default)API tokenserviceKey and ingestionKey

Also available: IAM Access Token.

The portal and metorial setup use Service Key unless someone picks another method.

Service Key

To connect, a person enters these values:

  • serviceKey: Service key found under Settings > Organization > API Keys in LogDNA dashboard
  • ingestionKey (optional): Ingestion key for log ingestion (optional)

Admin: share LogDNA in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose LogDNA. Under Auth Method, keep Service Key or pick another. For how members connect, choose Each person connects so everyone enters their own service key, or Shared connection to enter one service key for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from LogDNA.

Choose who gets it

Add the access groups that should see LogDNA. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user LogDNA integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search logdna

Employee: connect LogDNA

In the portal

Open LogDNA in the catalog

Sign in to your portal and open LogDNA. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your service key (serviceKey).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search logdna
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses Service Key. To connect with IAM Access Token instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your LogDNA connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list logdna
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 15 read-only tools, such as get_view and get_board, and lose the 8 write tools, such as create_view or ingest_logs, and the 11 destructive tools, such as delete_view or delete_board.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list logdna
metorial tools <integration-id>
metorial call <integration-id> list_views -d '{}'

metorial tools lists the 34 tools, minus any you rejected. list_views takes no input. It lists all saved log views in the LogDNA account.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (15)

  • list_boards: List all boards (dashboards) in the LogDNA account.
  • get_usage: Retrieve aggregated log usage information for the LogDNA account. Needs from and to.
  • get_view: Retrieve the configuration of a specific saved view by its ID, including its query, filters, and alert channels. Needs viewId.
  • get_archive_config: Retrieve the current archiving configuration for long-term log storage.
  • get_board: Retrieve the configuration of a specific board by its ID, including its title and widgets. Needs boardId.
  • get_ingestion_status: Get the current data ingestion status for the LogDNA instance.
  • list_preset_alerts: List reusable preset alert configurations.
  • list_categories: List all categories of a given type. Needs type.
  • list_exclusion_rules: List all ingestion exclusion rules.
  • list_views: List all saved log views in the LogDNA account.
  • export_logs: DEPRECATED — use `download_log_export` instead. Needs from and to.
  • get_exclusion_rule: Read one ingestion exclusion rule by ID.
  • get_category: Read a view, board, or screen category by ID.
  • get_preset_alert: Read a reusable preset alert configuration by ID.
  • download_log_export: Download one JSONL page of matching LogDNA logs.

Write tools (8)

  • create_preset_alert: Create a reusable preset alert with notification channels for saved views. Needs name and channels.
  • create_view: Create a new saved log view with optional filters and alert channels. Needs name.
  • update_preset_alert: Update an existing preset alert's name and/or notification channels. Needs alertId.
  • update_view: Update an existing saved log view. Needs viewId.
  • ingest_logs: Send log lines to LogDNA for ingestion. Needs hostname and lines.
  • create_board: Create an empty board (dashboard) with a title and optional categories. Needs title.
  • create_category: Create a new category for organizing views. Needs type and name.
  • update_category: Update a category's name. Needs type, categoryId and name.

Destructive tools (11)

  • update_exclusion_rule: Update an existing exclusion rule's title, filters, or active state. Needs ruleId.
  • save_archive_config: Create or update the archiving configuration for long-term log storage. Needs integration.
  • delete_view: Delete a saved log view and any attached alerts by its ID. Needs viewId.
  • create_exclusion_rule: Create a new exclusion rule to prevent certain logs from being stored. Needs title.
  • delete_board: Delete a board (dashboard) by its ID. Needs boardId.
  • delete_archive_config: Delete the current archiving configuration.
  • delete_preset_alert: Delete a preset alert by its ID. Needs alertId.
  • delete_category: Delete a category by its type and ID. Needs type and categoryId.
  • suspend_ingestion: Suspend data ingestion for the LogDNA instance.
  • resume_ingestion: Resume data ingestion for the LogDNA instance after it has been suspended.
  • delete_exclusion_rule: Delete an exclusion rule by its ID. Needs ruleId.

Triggers

LogDNA has 1 trigger, which fire on events in LogDNA:

  • alert_webhook: Receives webhook notifications from LogDNA when alert conditions on views are triggered.

Next steps