Splunk table
Try it
This suite uses its own database, Splunk or channels, which need a Wardian. Download it and import it in Wardian to run it.
Download splunk-table.wardian Import it in Wardian: Settings → Import.
For anyone who works with Splunk: run a search and see every row it returns, so you can check the data before another app uses it. The latest table goes out to other apps, such as the USL lab, which lets you choose the load, throughput and response time columns.
What you put in#
| Field | Type | Allowed | Default | Required |
|---|---|---|---|---|
| Start from | one of: my own search, find words, a load test template, a JMeter template, a live traffic template | — | my own search | yes |
| Words to find (find words only) | short text | up to 200 characters; a phrase in quotes | empty | yes, for that choice |
| In index (find words only) | short text | up to 80 characters of letters, digits, - _ * . | every index | no |
| Splunk search | long text in Splunk's search language | up to 10,000 characters | the last search | yes |
| Time range | a ready range, a calendar range, Last …, Between two dates, or Splunk time codes | — | Last 24 hours | yes |
| How many (Last …) | whole number | 1 to 100,000 | 3 | yes, for that choice |
| Unit (Last …) | minutes, hours, days, weeks or months | — | days | yes, for that choice |
| From / To (between two dates) | date and time | To after From; To empty means now | yesterday 00:00 / now | From: yes |
| Earliest / Latest (time codes) | Splunk time code, like -2d@d | up to 40 characters; Latest empty means now | empty | no |
| Name of this table | short text | up to 120 characters | from the template | no |
| What you want (Ask Claude) | long text | up to 500 characters | empty | yes, to write with AI |
| Find in results | search text | up to 200 characters: words, column=text, column!=text, column>number (also <, >=, <=) | empty | no |
What it shows#
- About this table: what the rows are, the search, the time range, when it ran and how long it took.
- Ready for the USL lab? Under About: which columns are the load, the throughput and the response
time, and what to watch, by Neil Gunther's rules for the Universal Scalability Law
(How to Quantify Scalability):
- Problems:
- no load or no throughput column;
- a load that is a utilisation, a CPU percentage or a load average, which is a result of the load;
- fewer than 3 load levels.
- Things to watch:
- a count rather than a rate;
- several rows per load, or
_time, where the USL wants one steady-state value per load; - fewer than 6 load levels, or loads spanning less than ×4;
- throughput per unit of load that rises (superlinear) or never peaks;
- load that disagrees with throughput × response time (Little's Law);
- loads resting on little data. It is open when the table names a load and a throughput, or came from a template. A table in the database is checked from its first 1,000 rows.
- Problems:
- Result: every row, 100 at a time, sortable, with Find in results and how many rows match.
- Use this table: Send to other apps (with the columns found for the USL lab), Download CSV, Save table, what was sent, and the saved tables.
- Ask Claude: a search Claude writes from your description, from your index and field names.
How it behaves#
- Searches run as background jobs on the Wardian server, with a clock and Stop; you can leave the app meanwhile, and it picks the result up when you come back.
- Without Splunk (not set up in Settings), Run search is off and the status says why and who sets it up. Saved tables still open, and Show a sample table loads made-up rows, titled as a sample and never presented as Splunk's, so every part, and the USL lab, can be tried.
- A field's problem shows when you leave it or press Run search: an empty search, no words to find, or a time range it can't use. The field is marked, the message says what is allowed, and Run search puts the focus on it. Find in results explains a filter it can't read under the field.
- A disabled button has its reason next to it. Searches, saved searches and saved tables are kept in this app.
Layout#
- Search (the side column): Start from (
size-lg), Words to find (size-lg) and In index (size-md) when finding words, Splunk search (size-full), Time range (size-md) with How many (size-xs,num) and Unit (size-sm), From and To (size-md), or Earliest and Latest (size-sm), Name of this table (size-lg), Run search and Save search, the progress bar, the status, Show a sample table (without Splunk only), Saved searches. - Ask Claude (the side column): What you want (
size-full), the USL switch, Write with AI. - About this table, Result (Find in results,
size-full, the table, the pager) and Use this table, in the main column.
The tab order follows that reading order. Errors are marked with aria-invalid and explained in
hints tied to their fields with aria-describedby.
How it is built#
Runs a Splunk search on the Wardian server and shows every row it returns, so you can check the
data before an app uses it. The latest table goes out on the channel splunk.table; the USL lab
receives it and lets you choose which columns are load, throughput and response time.
A suite of five small parts (ADR-2610080900), each with one job and its own panel, so each viewer can
arrange them: put the table full width, hide the AI helper, or move the facts below the table. A
sixth part, ai, has no panel: it is the app's AI.
| Part | Slot | Job | Contract |
|---|---|---|---|
search | aside | Start from, words to find, the search, time range, name, Run, progress, Save search and the saved searches. Runs the search as a background job and picks it up again when the app opens. Keeps the current table, so it comes back next time. | emits table:ready (retained); listens search:use, table:ready; storage, splunk, db |
ask | aside | Claude writes the search from a description, through ai, then search runs it; the progress bar names each step. Off, saying why, when Claude or Splunk is not set up. | emits search:use; listens ai:step; needs ai.status, ai.write |
about | main | What the table is: name, rows, time range, when it was fetched or saved, the search; and whether the USL lab can use it (shared/usl.js). | listens table:ready; db |
rows | main | Find in results, sort by any column, the table, the pager. | emits table:view (retained); listens table:ready; db |
keep | main | Send to other apps, Download CSV, Save table and the saved tables. | emits table:ready (retained); listens table:ready, table:view; storage, db, claude:downloads; sends splunk.table |
ai | — | The app's AI, out of sight: the only part with Claude. Its skill and tools are in skill.md and tools.json; it writes searches for ask and answers Wardian's Ask. | emits ai:step; provides status, write, chat; claude:sample, asset, splunk, db |
How a search flows: search (or ask → search:use → search) runs it and emits
table:ready {table, send: true} → about and rows draw it, and keep sends it on
splunk.table at once. rows emits table:view (the find text and the sort), so keep's CSV
saves the rows on screen. Opening a saved table in keep emits table:ready {table, send: false};
search keeps it as the current table.
shared/ holds what several parts use, listed in suite.json "scripts" so each frame gets its own
copy: cells.js (number tests, CSV cells, row counts), find.js ("Find in results" in memory and
as SQL, the sort), range.js (reading the time range) and saved.js (the saved lists).
apps/search/presets.js and apps/search/form.js are the search part's own scripts.
How the AI works#
The AI is the out-of-sight ai part, and its skill and tools are data (ADR-2610131300):
apps/ai/skill.md, the skill: look at the data before writing, use only fields that exist, and the rules for a plain table and for a USL table (load, throughput and response time, steady state, Little's Law for production traffic); and how to answer questions about the tables.apps/ai/tools.json, five read-only tools:list_data(the indexes and sourcetypes with events),field_summaryandsample_events(one index's fields and a few raw events, emails replaced with<email>), andlist_tablesandread_rows(the tables kept here, run by Wardian's agent component). The Splunk tools run fixed searches that take only an index and a sourcetype, checked as names, so Claude never runs a search of its own; the search it writes goes to search, where you see it run.
In Wardian, open the app, then ⋯ → AI skill and tools to read, edit or improve them; each save is a version in History. Ask, beside the app's title, is a chat that the same AI answers about the tables you kept and what is in Splunk.
Find in results filters the rows on the page. Plain words match any cell; column=text,
column!=text and column>number (also <, >=, <=) look in one column. The CSV then holds
only the matching rows. The table sent to other apps is always the full result.
The message on splunk.table holds title, fields, rows, search, range, rangeLabel, at,
seconds, truncated and cut (rows left out to fit one 256 KB message). A ready-made search also
sends about (what each column means), units and use (which columns are load, throughput and
response time). A table in the database also sends dataset, which the lab reads a page at a time.
The live-traffic searches keep a minutes column: how many minutes of traffic each row averages. A row
that rests on few minutes deserves less trust than one that rests on hundreds.
Saved searches and tables. Save search keeps the search, its time range and its name under a
name of your choice. Save table keeps a copy of the current table: in the app's database as a
table named saved_… (so a new search does not replace it), or, on a host without a database, in
the keep part's storage (up to about 0.7 MB, since the host keeps at most 1 MB per part). You can
use, open or delete each one. An opened table can be sent to other apps like a fresh one.
Saving as a web page (ADR-2610080905): rows has a snapshot, so the saved page holds every row
the view matches, up to 10,000, not just the page on screen, and says so when it cuts.
Moving data from the one-part version#
Before ADR-2610080900 one part, table, kept everything. Each part now has its own storage, so the
saved searches and tables must move once. Stop Wardian (or close the app), then run:
node scripts/splunk-table-migrate-storage.js <DATA_DIR>/state/apps/splunk-table.json
It copies the file to .bak first, then moves state and savedSearches to search, and
savedTables and savedRows:… to keep. Saved tables in the database stay where they are. A key
a part already has is kept, and the old copy stays under table; running it twice does no harm.
A search left running by the one-part version is still picked up when the app opens.
This page is apps/splunk-table/README.md in the repository. Something wrong or missing? Change that file.