Ask a question the way you would ask a colleague. The model looks things up in Graylog through read-only tools, as your own Graylog account, and answers with the numbers Graylog computed. Every lookup is listed under the answer and opens in Graylog with one click. It runs on your own LLM server and is off by default.
A chat page in jt-glogarch, for people who know what they want to find out but not the query that finds it.
Counts, top values, breakdowns by up to three fields and trends over time come from Graylog's aggregation API. The model reads the results; nothing is sampled.
Before it filters, it checks which fields the messages really have and where a word appears, with its exact value. A query that finds nothing is checked first.
Under each answer: the query, time range, records found and time taken, a copy button and a link that opens the same search in Graylog.
Turn an answer into a Graylog dashboard, a summary PDF whose charts are queried from Graylog again, or a case with the matching logs attached.
An HTML dashboard or Mermaid diagram the model writes shows beside the chat as it is written, in a sandbox with no network.
From one address: the hosts it got into and their later connections, up to six hops. A process tree shows what started what on Windows. Drawn from Graylog's counts.
Accounts, e-mail addresses and UUIDs differ between systems. A question about a person searches all of their names, using the site's own lookup rules.
llama.cpp, vLLM, LM Studio, Ollama or any OpenAI-compatible server, and the Claude API. Set up several and pick one per question.

Real questions on invented demo data: what was asked, what Graylog was asked, and the answer.
The model never talks to Graylog itself. It asks jt-glogarch to run a tool, and jt-glogarch decides whether and how.
Two groups: tools written in jt-glogarch, and the embedded mcp_graylog. The page shows each one by the name below.
| Name in the page | From | What it is for |
|---|---|---|
| Counting and searching | ||
Count messagescount_messages | jt-glogarch | Exact number of messages for a query and time range |
Top valuestop_values | jt-glogarch | The most common values of one field, with counts |
Breakdownaggregate | jt-glogarch | Group by 1 to 3 fields with counts, distinct counts, first and last time, sums, averages, percentiles; or by time |
Find fieldsfind_fields | jt-glogarch | Which fields the messages have, the exact values of state fields, and where a word appears |
Sample messagessample_messages | jt-glogarch | A few of the newest matching messages, to read what they look like |
Message patternssummarize_messages | jt-glogarch | Up to 10,000 newest messages folded into patterns, each with a count |
Read kept resultread_result | jt-glogarch | Reads more of a result that was too big to show at once |
| jt-glogarch's own data | ||
Security incidentslist_security_incidents | jt-glogarch | Security incidents found by jt-glogarch's detections |
One incidentget_security_incident | jt-glogarch | One incident with its metrics, ATT&CK techniques and Graylog query |
Investigation caseslist_security_cases | jt-glogarch | Investigations being worked on |
One caseget_security_case | jt-glogarch | One investigation with its incidents and timeline |
Risk rankingsecurity_risk_ranking | jt-glogarch | Addresses and accounts ranked by risk, with how each point was counted |
Archive coveragearchive_status | jt-glogarch | How archiving is doing: coverage, gaps, jobs, disk |
| Graylog configuration | ||
List fieldslist_fields | mcp_graylog | Fields Graylog knows |
Streamsget_streams | mcp_graylog | Streams |
Inputslist_inputs | mcp_graylog | Inputs |
Index setslist_index_sets | mcp_graylog | Index sets |
Indiceslist_indices | mcp_graylog | Indices |
System infoget_system_info | mcp_graylog | Graylog version and node |
Current timeget_current_time | mcp_graylog | The current time, for relative ranges |
| Graylog health | ||
Cluster healthget_cluster_health | mcp_graylog | Cluster, journal and buffers |
Node metricsget_node_metrics | mcp_graylog | Node metrics |
Indexer failureslist_indexer_failures | mcp_graylog | Messages OpenSearch refused to index |
System notificationslist_system_notifications | mcp_graylog | Graylog's own warnings |
Silent sourcesfind_silent_sources | mcp_graylog | Sources that stopped sending |
| Alerts and events | ||
Event definitionslist_event_definitions | mcp_graylog | Alert rules |
One event definitionget_event_definition | mcp_graylog | One alert rule |
Search eventssearch_events | mcp_graylog | Alerts that fired, up to 31 days |
Event messagesget_event_source_messages | mcp_graylog | The messages behind an alert |
Event notificationslist_event_notifications | mcp_graylog | Notifications, without recipients or secrets |
| Dashboards, packs and analysis | ||
Dashboardslist_dashboards | mcp_graylog | Dashboards |
One dashboardget_dashboard | mcp_graylog | One dashboard's widgets and queries |
Content packslist_content_packs | mcp_graylog | Content packs installed |
Log sampleget_log_sample | mcp_graylog | A sample of messages |
Search logssearch_logs_paginated | mcp_graylog | Search messages page by page |
Time patternsanalyze_time_patterns | mcp_graylog | Messages over time |
Sourcesanalyze_source_distribution | mcp_graylog | Messages per source |
Field valuesanalyze_field_distribution | mcp_graylog | Values of one field |
| Off unless an administrator ticks them | ||
Log statisticsget_log_statistics | mcp_graylog | Overview statistics |
Error patternsanalyze_error_patterns | mcp_graylog | Error messages grouped |
Log levelsget_log_level_analysis | mcp_graylog | Messages per log level |
Five steps, all on the AI chat page.
/v1 for llama.cpp, vLLM, LM Studio, Ollama; OpenAI or Google Gemini work too, see the FAQ), an API key if it needs one, then pick the model from the list it returns. Claude API: an Anthropic key and a model. For a server you run, leave the context length at 0 and jt-glogarch asks the server.localadmin account is asked to sign in to Graylog on the page first.web.allowed_graylog_roles (Admin by default)Any language works; the answer comes back in the language you asked in.


The numbers come from Graylog, and every one of them can be checked there.
In Graylog only message, full_message and source are matched word by word, ignoring case. Every other field must match its whole value, case included: measured on one site, action:blocked found 0 and action:Blocked 35,544 in a day. jt-glogarch checks an empty result before the model reads it and hands over the corrected query with its real count, so the model does not report “no records” when there are thousands.

Following one person's trail across systems, and turning internal addresses into hosts.
jason in LDAP, jason@example.com in mail, EXAMPLE\jason in Windows and only a UUID in Nextcloud. jt-glogarch learns this from your own logs and searches all of them when the model searches one.jason does not match jason2, a jason at another company's domain, or a mail bounce address. Each step shows the names it added, and Security → Identities lets you confirm, reject or add names.
An answer is a starting point: each of these is one click from it.
Create a Graylog dashboard under an answer lists the lookups that make charts. Pick them, the chart type and a time range; jt-glogarch creates a real dashboard in Graylog, as you. The widgets are live Graylog queries, not pictures. Only you can see it until you share it in Graylog.

From the conversation header: a PDF report with the findings, conclusions and limits in the report's own words, and charts that are queried from Graylog again, so they agree with the dashboard. Numbers in the text that do not appear in the conversation or in the re-run results are flagged.

Ask for an HTML dashboard or a Mermaid diagram and it opens beside the chat while it is being written. The preview runs in a sandbox: it cannot reach the network, jt-glogarch or your cookies.

Save as an investigation case creates an investigation with the conversation, each page or diagram the model drew, the lookups, the summary PDFs, and the matching logs of every lookup saved as compressed JSON with a SHA-256 checksum. A lookup the model ran twice is saved once.

The same tools, for an AI client you already use.
https://<host>:8990/mcp (JSON-RPC: initialize, tools/list, tools/call).Authorization: Bearer <token>. The token's user needs an allowed Graylog role. X-Graylog-Server picks the server when there are several.# list the tools (replace the host and token)
curl -s https://jt-glogarch.example:8990/mcp \
-H 'Authorization: Bearer <Graylog API token>' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'What the model can reach, and what is kept.
No tool writes. A dashboard is created only when you click Create, as you.
To the LLM server you picked: the question and the tool results. With an internal server they stay inside your network. jt-glogarch sends nothing anywhere else.
Counts and breakdowns are computed by Graylog, not estimated by the model. Check that each query has your conditions; Open in Graylog shows the same search.
Usually a field or its case: most fields match their whole value, case included. Open the lookup and look at its query; jt-glogarch now checks an empty result and offers the corrected query.
jt-glogarch does not; an LLM server you run yourself does, for useful speed. Without one, a cloud service works too: Claude with the type Claude API; OpenAI (the ChatGPT models) and Google Gemini with the type OpenAI-compatible and the URL https://api.openai.com/v1 or https://generativelanguage.googleapis.com/v1beta/openai, plus the service's API key. These are outside your network, so they need Allow an external LLM (outside the private network) (audited), and the questions and the log data the tools return go to that service. They do not tell jt-glogarch their context length: enter the model's in Context window.
mcp_graylog is one of its two tool groups, embedded unmodified. The chat adds exact counting tools, field finding, jt-glogarch's own data, the page, and the exports.