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
- A portal with at least one access group
- A service key from LogDNA for each person, or one for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| Service Key (default) | API token | serviceKey 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 dashboardingestionKey(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:
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
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.
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 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. Needsfromandto.get_view: Retrieve the configuration of a specific saved view by its ID, including its query, filters, and alert channels. NeedsviewId.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. NeedsboardId.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. Needstype.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. Needsfromandto.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. Needsnameandchannels.create_view: Create a new saved log view with optional filters and alert channels. Needsname.update_preset_alert: Update an existing preset alert's name and/or notification channels. NeedsalertId.update_view: Update an existing saved log view. NeedsviewId.ingest_logs: Send log lines to LogDNA for ingestion. Needshostnameandlines.create_board: Create an empty board (dashboard) with a title and optional categories. Needstitle.create_category: Create a new category for organizing views. Needstypeandname.update_category: Update a category's name. Needstype,categoryIdandname.
Destructive tools (11)
update_exclusion_rule: Update an existing exclusion rule's title, filters, or active state. NeedsruleId.save_archive_config: Create or update the archiving configuration for long-term log storage. Needsintegration.delete_view: Delete a saved log view and any attached alerts by its ID. NeedsviewId.create_exclusion_rule: Create a new exclusion rule to prevent certain logs from being stored. Needstitle.delete_board: Delete a board (dashboard) by its ID. NeedsboardId.delete_archive_config: Delete the current archiving configuration.delete_preset_alert: Delete a preset alert by its ID. NeedsalertId.delete_category: Delete a category by its type and ID. NeedstypeandcategoryId.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. NeedsruleId.
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
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use LogDNA there
- Tool permissions: tool filters and what employees see
- LogDNA on metorial.com: the integration overview