LogVisor is a VS Code extension that reads logs where they are, shows them in a table split into time, level, message and fields, follows them live, and filters them. It is a sister tool of the database client DBVisor, the API and messaging client MsgVisor, SSHVisor for files over SSH, and the archive tool ArcVisor.
This guide is for v0.4. The screenshots show VS Code with its display language set to English.
#Contents
- What you can do
- Installation
- Supported logs and formats
- Open logs
- The log viewer
- Save log sources
- Docker and command logs
- SSH hosts
- AI agents (v0.4)
- Keyboard shortcuts
- Settings
- Troubleshooting
- FAQ
- Limitations of this version
#1. What you can do
- Read logs in VS Code: log files on this machine and on SSH hosts (servers), Docker containers, Docker Compose services, journald, Kubernetes pods (v0.3), and the output of commands you write
- See even large files from the end right away, and follow new lines live (like
tail -f) - See lines in a table split into time, level, message and fields. The format (JSON Lines, logfmt, plain text logs, access logs) is detected automatically
- Filter by level, text (regular expressions too) and time range. Find text within the filtered records
- See the fields, the raw text and the JSON of a record. Filter by a field value, or show the field as a column
- See the number of records over time as bars stacked in level colors, and drag to choose a time range. Filter by the size of field values (
status >= 500,durationMs > 1s) (v0.3) - See the records around a filtered record. Open the original file in the editor at that line
- Color the records that match a text or a field value, without filtering. Export the filtered records as original lines, JSON Lines or CSV
- Save the logs you read often as "log sources". Keep them only for yourself or share them with your team (
.vscode/logvisor.json), and tag them with an environment (development, staging, production) - Read several log sources as one table merged in time order (and correct server clocks that are off). Save combinations of log sources and filters as "views"
- Import team-shared hosts from SSHVisor, and open files in the SSHVisor tree as log sources on that host (v0.3)
- Let AI agents (the chat in VS Code, Claude Code, Codex and others) read your registered logs with read-only tools, with secrets hidden (v0.4)
LogVisor only reads logs. It never changes or deletes them. It sends no usage data, and it connects over the network only to the SSH hosts you register.
LogVisor does not load the whole log into memory; it reads only the part you can see. Even with a 1 GB file, you see the end as soon as you open it, and the index of record counts is built in the background in about a second (depending on the CPU and disk of your machine).
#2. Installation
LogVisor is distributed as a VSIX file (logvisor-0.2.0.vsix).
- In the Extensions view, choose "Install from VSIX..." from the "..." menu, and select the VSIX file
- Or run
code --install-extension logvisor-0.2.0.vsixin a terminal
LogVisor requires VS Code 1.134 or later. It works on Windows, macOS and Linux, and with Remote - SSH, WSL and Dev Containers. In a remote window, it reads the logs on the remote machine (in a WSL window, the files and docker inside WSL; in a Remote - SSH window, the files on that server).
To read Docker logs, you need the docker command (Docker Engine or Docker Desktop). To read Kubernetes pod logs (v0.3), you need the kubectl command and the kubeconfig you usually use (KUBECONFIG, ~/.kube/config).
After you install it, the LogVisor icon appears in the Activity Bar. If you are new to LogVisor, try Get Started with LogVisor under "Walkthroughs" on the Welcome page. It takes you step by step through opening a log, filtering, saving a log source, merging several logs by time, reading server logs over SSH, and letting AI agents read your logs.

#3. Supported logs and formats
#Kinds of log sources
| Kind | How it is read |
|---|---|
| File | A log file on this machine. New lines are followed live. Rotated files (app.log.1, app.log.2.gz and so on) can be joined from the oldest and read as one log |
| Docker container | The output of docker logs. Lines from standard error, and the times when the container stopped and restarted, are shown too |
| Docker Compose | The output of the services of a Compose project (docker compose logs). The service name is shown as a column |
| Command | The output of a command you write (for logs that no other kind can read; for example, kubectl logs -f deploy/api) |
| journald | The logs of systemd services (journalctl). Choose a unit, or read all logs |
| Kubernetes (v0.3) | Pod logs (kubectl logs). Choose the pods by a workload such as a deployment, by a pod name, or by a label selector. New and re-created pods are followed too. The pod and the container are shown as columns |
#Log formats
| Format | Examples |
|---|---|
| JSON Lines (one JSON object per line) | pino, bunyan, zap, logrus, Serilog and others |
logfmt (a series of key=value) |
Go tools, the Heroku style |
| Generic (finds the time and level near the start of the line) | Logback, Log4j, Spring Boot, Python logging, Apache error logs and others |
| Access log | nginx and Apache combined and common |
| syslog | /var/log/syslog, auth.log, messages (RFC 3164 times, and the rsyslog default with RFC 3339 times), RFC 5424. The host, program, PID and facility become fields |
| journald | Lines of journalctl -o json (journald log sources are read in this format automatically). The level comes from PRIORITY, and the unit, identifier and PID become fields |
| Custom format | A format you define yourself with a regular expression with named groups and a time format ("Custom formats" below) |
| No format | When no format matches (each line is one record) |
- The format is detected from the last lines when you open a log. If it is wrong, choose another one with "Format" in the viewer header (5. The log viewer). You can save a fixed format in a log source.
- Multi-line records (such as Java stack traces) are combined into one record, and you can expand and collapse the continuation lines.
- Times in the log that have no time zone offset are read in the time zone of this machine. You can set the time zone in "Advanced" of the log source.
- Text is read as UTF-8. You can choose Shift_JIS and other encodings in "Advanced" of the log source.
- Levels are grouped into FATAL, ERROR, WARN, INFO, DEBUG and TRACE (
CRITICALis FATAL,WARNINGis WARN, and the numeric levels of pino and bunyan are read too). Lines whose level cannot be read are "Unknown". - The time, level and message fields of JSON Lines are found among common names (
time,ts,@timestamp,level,severity,msg,messageand others). If your log uses other names, set them in JSON fields in "Advanced" of the log source. - Color codes in the log (ANSI escape sequences) are removed from the display (they stay in the raw text).
#Custom formats
For in-house logs that no format matches, you can define the format yourself. In the custom format editor (v0.3), you write a regular expression with named groups, using lines of the log as samples. As you type, it is applied to the sample lines to show how the time, level, message and fields are read.

#Open the editor
- From the viewer: the pencil button next to Format in the header (Write a Custom Format from These Lines…). It uses the visible lines (the last lines when you are following the end) as samples. Write a Format… in the notice shown when the format could not be recognized does the same. For a log read with a custom format, it opens the editor for that definition
- From the add screen of log sources: New Format… next to the format field in "Advanced" (Edit Format… when a custom format is selected). If you have run Test Read, the lines it read become the samples. When you save, the format of the log source is set to that format
- From commands: LogVisor: New Custom Format… and LogVisor: Edit Custom Format… (a list to choose a definition from; the duplicate button on the right copies a definition to create a new one). They are also in the "..." menu at the top of the Log Sources view

#Write the format
- Name and ID: an ID is suggested from the name (letters, digits and
. _ -). Log sources refer to the format ascustom:<ID>, so the ID cannot be changed after you save - Pattern: write named groups
(?<name>…).time,levelandmessage(required) are special names, and groups with other names become fields. The Insert a group: buttons (Time, Level, Message, Field) wrap the selected part in a group (if nothing is selected, they insert typical contents). Below the field, you see the color of each group and whethermessageis missing - Time format:
yyyy MM dd HH mm ss SSS,MMMfor month names,XXXfor the offset, and literal text in quotes, such as'T'. You can click a suggestion to choose it. Suggestions that read the sample times to the end get a check mark. If it is empty, times are read in common formats (ISO 8601, syslog, access logs, epoch and others) - Level words: maps words that are not usual level words (INFO, WARN, ERROR and so on) to levels. Words in the samples that have no mapping are listed under "Words without a level:"; click one to add it (a level is suggested for common words)
- Lines that do not match continue the previous record: attaches lines that do not match the pattern to the previous record, like stack traces
- Save to: "Only me" (
custom-formats.jsoncin the LogVisor storage of this machine) or "Team (workspace)" (formatsin.vscode/logvisor.json, shared with Git). You can also edit the file for "Only me" by hand, so saving keeps your comments and the way the other definitions are written. Open as JSON… opens the definitions file in the editor
#Results on the samples
- Sample lines: paste lines of the log, or use Take from a Log… to take the last lines of an open log or of a file. Up to 200 lines are used, and only the first 4,096 characters of each line
- The bar and the numbers at the top show the proportions of matched lines, continuation lines and unmatched lines, and how many times and levels were read
- For each line, you see its kind (Match, Continues or No match, in text), the line with the groups marked by colors and underlines (hover to see the group name), and the time, level, message and fields that were read. If a time or level word could not be read, a mark and an explanation are added
- For a line that does not match, you see how far it matched from the start (the matched part, a red wavy line after it, and a mark at the boundary) and the next part that did not match (for example, "Matched up to column 17. The next part
␣job=does not match here.")

- Errors are shown near the fields (the pattern is not a valid regular expression,
messageis missing, the time format cannot be read, the same word is written twice, the ID already exists, and so on) - Regular expressions that can take too long (nested repetition such as
(a+)+, and backreferences) cannot be used. The reason and a mark at that position are shown below the field. The samples are matched in a separate thread, and if that takes longer than 2 seconds, it is stopped and you are told (so that VS Code does not freeze)
#After you save
- If you opened the editor from a viewer, saving applies the format to that viewer (Save and Apply). Other viewers that read with that format also read again with the edited definition
- The format appears right away in the format lists of the add screen and the viewer ("Your formats:
"). To use it, set the format of a log source to custom:<id> - If the same ID exists in both places, the team-shared one is used
- For logs in a custom format, reading the visible part and splitting it into fields is also done in a separate thread (a worker) (v0.4). Even if the regular expression never finishes on some line, VS Code does not freeze: after 2 seconds, LogVisor stops it, reads each line as one record again, and tells you
#Reference: the JSON form of a definition
Definitions you write in the editor are saved in the following form (you can also write them by hand. Open the Definitions File… in the add screen opens the file in the same place where the log source is saved. The file for "Only me" is created with an explanation and an example the first time you open it).
{
"formats": [
{
"id": "batch",
"name": "legacy batch",
// Named groups. time, level and message are special names (message is required); other names become fields
"pattern": "^(?<time>\\d{8} \\d{6}) (?<level>[IWEF]) job=(?<job>\\w+) (?<message>.*)$",
// Time format: yyyy, MM, dd, HH, mm, ss, SSS, and XXX for the offset. Times without an offset are read in the time zone of the log source
"timeFormat": "yyyyMMdd HHmmss",
// Level words and their levels (fatal, error, warn, info, debug, trace). Words not listed are read as usual level words
"levels": { "I": "info", "W": "warn", "E": "error", "F": "fatal" },
// true attaches lines that do not match pattern to the previous record as continuation lines (stack traces)
"multiline": false
}
]
}
- If a definition has an error, that definition is skipped and you are told below the format field of the add screen (details are in LogVisor in the Output panel)
- If the custom format that a log source refers to is not defined, the format is detected automatically and you are told in the viewer header (Write a Format… creates a definition with that ID)
- If a regular expression still takes too long on a line, that format is stopped, each line is shown as one record, and you are told in the viewer header

#4. Open logs
#Open a file directly
You can open a file right away, without saving it as a log source.
- Use Open Log File... at the top of the LogVisor view (or LogVisor: Open Log File... in the Command Palette), and choose the file
- In the Explorer, right-click a log file (
*.log, rotated logs such as*.log.1,*.out,*.jsonl,*.ndjson) and choose Open in LogVisor. You can change which file names show this item with the settinglogvisor.fileAssociations - You can also choose LogVisor from Open With... in the Explorer context menu. When you click a log file, it still opens in the usual editor
The files you open are listed under Recent Logs at the bottom of the view, up to 10. Click the × on the right of a row to remove it.
You can also open files inside SSHVisor and ArcVisor (files at locations other than file). In that case, the whole file is read, so the file can be up to 64 MB, and it is not followed live. The header shows the decoded path and the name ArcVisor or SSHVisor.
#Open logs inside ArcVisor
Open an archive in ArcVisor (such as a logs.tar.gz you received), right-click a file row in the list, and choose Open in LogVisor. The log inside opens in the viewer without being extracted (when ArcVisor 0.7 or later is installed).

#Open a Docker container directly
Use Open Docker Container... or Open Docker Compose Project... in the "..." menu at the top of the LogVisor view, and choose one from the list to open it (it is not saved as a log source).
#Keep a log you opened
+ in the viewer header (Save as Log Source), or Save as Log Source... in the Explorer context menu, opens the add screen with the target filled in (6. Save log sources).
#5. The log viewer

When you open a log, the viewer shows it from the end and moves with the end as new lines arrive (live).
#Header
- Live state: shown with a dot and text: "Live" (green), "Paused" (you paused it), "Stopped" (the container stopped, the command ended, or a file was read as a whole), "Loading", and "Failed" (red)
- Name and environment tag: the name of the log source and its development, staging or production tag (color and text). Also the target (the file path or container name) and the location
- Connection state: for logs on SSH hosts, "Connected" (green), "Connecting…", "Reconnecting in 5 s" and "Disconnected" are shown with a dot and text. When the connection is lost, Reconnect Now reconnects without waiting (8. SSH hosts)
- Format: the detected format. Click it to choose another one. The pencil button next to it opens the custom format editor with the visible lines as samples (v0.3. Custom formats)
- Pause / Resume: stops following live. When you resume, everything written while you were paused is shown at once
- Go to End: moves to the end and resumes following live
- Export…: exports records to a file or the clipboard ("Export" below)
- +: saves the log as a log source (for a log you opened directly)
- Load Older Records: for Docker and command logs, reads records older than the ones already read (7. Docker and command logs)
When you scroll up, the viewer stops moving with the end and shows a "12 new records" button. Click it to go back to the end.
#Filters

- Text: type in the box to show only the records that contain the text. With the toggles on the right, you can match case, match whole words, or use a regular expression. If the regular expression is invalid, the reason is shown below the box. A regular expression that takes too long is stopped after 2 seconds, and you are told
- Level: click a level button (with its color, text and count) to hide that level. Click it again to show it. The counts are for the part that has been indexed
- Time range: choose from All time, Last 5 minutes, Last 15 minutes, Last hour and Today. With Show from Here and Show until Here in the context menu, the time of a record becomes an end of the range
- Field value: Filter by This Value and Exclude This Value on a field in the details add conditions. The conditions you add are shown as chips in the bar; click × to remove one. For conditions on the size of values (v0.3), see "Numeric conditions" below
- When conditions are set, Clear Filters is shown
Filtering scans the log with workers from the newest records and shows matches as soon as they are found. The bar at the bottom shows the number of matches, such as "4 of 103 records", and the progress of the scan. If no records match, it says so.
#Records over time (v0.3)

Above the table, bars show the number of records over time. You can see at a glance when there are many logs, and when ERROR increased.
- Bars: stacked in level colors (from the bottom: FATAL, ERROR, WARN, INFO, DEBUG and so on). The heading shows the width of a bar, such as "One bar = 1 min", and the count. The width is a round value (from 1 millisecond to 1 year) chosen so that the range you are viewing fits the width of the screen
- Hover: shows the time range and count of the bar, and the count for each level
- Drag (or click, for one bar): shows only the selected time range. It becomes the time range filter, shown in the time range of the bar, such as "14:04:00.000 – 14:14:59.999". The bars zoom in to that range. Show All Times in the heading removes the range
- While filtering: when you filter by text, level or field conditions, the bars show the matching records
- Estimated bars: when you zoom into a narrow range of a large log and the bars become finer than the time divisions of the index, the count of each division is split by time into "estimated" counts. These are shown as pale striped bars; the heading says "Striped bars are estimates", and hovering shows "(estimate)". If the range covers only a few blocks (up to about 16 MB for files on this machine), the log is read and counted exactly, so the bars are usually exact
- The number of records without a time is shown in the heading, such as "3 without time". Until the index is built, the bars cover only the indexed part, and the heading says "Indexed part only"
- In a viewer opened together, the bars of the visible log sources are added up (the times include the clock offsets)
- Click Records over Time in the heading to collapse the bars and give the table more room. Whether they are collapsed is remembered and used for the next viewers you open
- Keyboard: on the bars, press ← → to select a bar and read its count, and press Enter to show the range of that bar

#Numeric conditions (v0.3)

You can filter by the size of field values (status >= 500, durationMs > 1000, latency >= 1.5s).
- How to add
- When the value of a field in the details is a number, the At Least This Value (≥) and At Most This Value (≤) buttons are shown. You can also choose them by right-clicking the field in the details
- With Add Condition… in the filter bar, write "name operator value", such as
status >= 500, and press Add (Enter). The operators are=!=>>=<<=(and≥≤≠). You can also change the operator with the operator buttons, and click a suggested field name (the fields of the records shown in the table) to enter it
- Chips: the conditions you add are shown in the bar, such as
status ≥ 500. Click a chip to edit it, and × to remove it. "At least" and "at most" on the same field can be combined into a range (durationMs ≥ 100anddurationMs ≤ 500) - How values are read: as numbers (
500,-3.5,1e3,1,024with thousands separators), durations (250ms,1.5s,2m,1h2m3.5s; converted to milliseconds), sizes (512B,12KB,3MiB; KB is 1000 times and KiB is 1024 times), and percentages (95%). A condition and a field value are compared only when they are of the same kind (latency > 1000does not match1.2s; writelatency > 1s). Values that are not numbers (such as-) and records without the field do not match - Even in large logs, values are found and compared by field name (
statusandbytesof access logs are at fixed positions), so generic, logfmt, JSON Lines and access logs filter 1 GB in about a second with 4 workers. syslog, journald and custom formats split each record into fields to check it, so they take longer - When you save a view, the numeric conditions are remembered too

#Table
- The columns are Time, Level and Message. Docker Compose adds a Service column. For structured logs, Show as Column on a field in the details adds the field as a column
- Drag the right edge of a column heading to change its width. The width is remembered and used the next time you open the log
- For a multi-line record, click "▸ 23 more lines" to expand the continuation lines in the table
- Lines with no time written (that are not continuation lines) show the time of the previous record in a pale color
- Each line is cut at 1 MB (cut records are marked)
#Details

When you select a record (click, or ↑↓), its details are shown below. Double-click or press Enter to open the details when they are closed.
- Fields: a table of the time, level, message and the fields written in the log. Each value has Filter by This Value, Exclude This Value, Show as Column and Copy, and for numbers also At Least This Value (≥) and At Most This Value (≤) (v0.3)
- Raw: the text as written in the log (the whole record for multi-line records)
- JSON: shows a JSON Lines record as a tree
You can hide the details with the button on the right of the header.
#Colors

Click Colors in the filter bar to show a small window of color rules. Type text, choose a color (red, orange, yellow, green, blue, purple) and click Add to color the records that contain the text. Color This Value on a field in the details colors a field value (such as status = 502).
- Coloring does not hide any records (it is separate from filtering). The color of the rule is shown as a band on the left of the row and as a pale background, and so that you do not have to rely on color alone, a label with the matched text (
name=valuefor a field) is shown before the message - When two or more rules match, the color of the rule higher in the window is used. You can change the color of a rule in the list on the left of the window. Click × to delete a rule
- The rules are remembered on this machine for each log source (for each path, for files opened directly), and used the next time you open it
- The Colors button shows the number of rules
#Export

Export… in the header exports records. In a VS Code Quick Pick, you choose these three in order.
- Records: the records that match the filters (all records when there are no filters), or the selected record
- Format: original lines (
.log, including continuation lines such as stack traces), JSON Lines (.jsonl: time, level, message and fields), or CSV (.csv: time, level, message, and the fields shown as columns) - Destination: Save to a File (choose the location in the save dialog), or Copy to the Clipboard (up to 10,000 records)
- Exporting to a file reads and writes a little at a time, so VS Code does not freeze even for large logs. The progress is shown in a notification, where you can cancel it
- If the filter scan is still running, export after it finishes (the notification shows the current progress)
- For files on SSH hosts, the parts without an index (8. SSH hosts) are also read from the server and exported
#Find

Press Ctrl+F (Cmd+F on macOS) to show a find box above the table. It searches the filtered records, highlights the matches, and shows a count such as "3 of 1,168". Press Enter or F3 to move to the next match, and Shift+F3 to the previous one. When you are following the end live, it searches from the latest match. Press Esc to close it.
#Context menu
Right-click a record to show the following items.
| Item | What it does |
|---|---|
| Show Surrounding Records | Clears the filters and shows the records around that record. Back to Filtered View returns to the original conditions |
| Open in Editor at This Line | Opens the original file in the editor and moves to that line (for files on this machine) |
| Show from Here / Show until Here | Makes the time of the record the start or end of the time range |
| Copy Line | Copies the raw text |
| Copy as JSON | Copies the time, level, message and fields as JSON |
Right-click a field in the details to show Filter by This Value and Exclude This Value, and, for numbers, At Least This Value and At Most This Value (v0.3).
#Bottom bar and notices
The bar at the bottom shows the total number of records, the number that match the filters, and the progress of the index. Until the index is built, the total is an estimate, such as "about 1,200,000".
When the file was truncated (by log rotation, for example), the format cannot be read well, the container stopped, and so on, a notice is shown above the table, with buttons for what you can do (Reconnect, Choose Format, Write a Format…, Open Settings).

#Appearance
The viewer is drawn in the colors of your VS Code theme. Even with a high contrast theme, you can tell the levels apart by their text.

#6. Save log sources
Save the logs you read often as "log sources" to open them with one click from the tree in the LogVisor view.

#Add a log source
+ at the top of the view (Add Log Source), or Add Log Source in the empty view, opens the add screen.
Choose a kind: choose from the cards File, Docker container, Docker Compose, Command, journald and Kubernetes (double-click a card to go to the next step). If
docker,journalctlorkubectlis not found (and there are no SSH hosts either), that kind is dimmed, with the reason
Details
Target: for a file, the path (you can choose it with Browse…; Join rotated files joins the rotated files before it). For a container, choose one from the list or type its name (stopped ones are listed too). For Compose, choose the project and the services (empty for all). For a command, write it on one line. For journald, choose a unit from the list or type its name (empty for all; My user's logs uses
journalctl --user). For Kubernetes, choose the context, namespace, pods to read and container (7. Docker and command logs)Name: suggested from the target
Folder: a name to group log sources in the tree (separate names with
/, likeproject-a/stg, for nested folders)Environment: None, Development (green), Staging (amber), Production (red)
AI agents (v0.4): whether AI agents may read this log source ("What AI agents may read" below)
Save to: "Only me" (kept on this machine for your user) or "Team (workspace)" (written to
.vscode/logvisor.jsonin the workspace and shared with Git)Advanced: Format (custom formats too; New Format… and Edit Format… next to it open the custom format editor, and Open the Definitions File… opens the JSON), JSON fields (the names of the time, level and message fields in JSON Lines; leave them empty to find common names; join nested fields with
., likelog.level), Encoding, and Time zone
Add from Running Containers... (in the "..." menu at the top of the view) opens the add screen with the kind set to Docker container. You can add a container just by choosing it from the list.
#Test Read
Test Read in the add screen checks whether the log can be read before you save it. It shows the result of each of the following steps, and then shows the last 20 records.
- Reach the location (in v0.1, this machine)
- Read the target (whether the file exists and you have permission to read it; for containers and journald, whether the end can be read; when joining rotated files, the files that were found)
- Detect the format (the chosen format and its score)
- Read times and levels (the proportion that could be read)
For a step that failed, it tells you what happened and what to check.


#Join rotated logs
When you choose Join rotated files for a file log source, the rotated files in the same folder are joined from the oldest, placed before the original file, and read as one log. In the table, the first record of each file gets a separator (a dotted line and a label), such as "File: app.log.1".

- Names that are joined:
app.log.1,app.log.2.gz(logrotate numbers),app.log-20261117,app.log-20261117.gz(logrotatedateext),app.log.2026-11-17(Python, log4j),app.1.log,app-2026-11-17.0.log.gz(Logback, log4j2). Up to 100 files, from the newest - Of compressed files, only gzip (
.gz) is read. A.gzfile is decompressed to a temporary file of the extension only when you scroll back to it (the file is deleted when you close the viewer)..gzfiles on SSH hosts are transferred compressed and decompressed on this machine. Other compression (.xz,.bz2,.zstand so on) is not joined, and Test Read tells you so - Only the original file is appended to. If the log rotates while you are reading it, the files are joined and read again
- The index is built automatically only for the last 64 MB (setting
logvisor.remote.indexTailMB). Earlier parts are read when you scroll back or jump to a time - In a joined log, Open in Editor at This Line in the context menu cannot be used (the lines do not match the lines of the original files)
#Working with the tree
- Open: click a row, or click ▷ on the right of the row. The same log source opens in one tab. To view it side by side with different filters, use Open in New Tab in the context menu
- Context menu: Open, Open in New Tab, Open Together (Merge by Time), Edit... (F2), Duplicate, Test Read, Delete (Delete; asks before deleting, and does not delete the log)
- Select several: click while holding Ctrl (Cmd on macOS) or Shift. Open Together (Merge by Time) in the context menu opens them merged in time order ("Open together (merge by time)" below)
- Views section: lists your saved views ("Views" below)
- Icon colors: green for log sources being read live, red for ones that failed
- The letter on the right of a row is the environment tag (D, S, P), and the names of production log sources are shown in red. Team-shared ones have "team" added
- Log sources that AI agents can read have "AI: read" added (v0.4. "What AI agents may read" below)
#Status Bar
While a viewer is open, the Status Bar shows how many logs are being read live. When the viewer of a production log source is in front, it shows "Production: name" on a red background, so that you do not mistake which log you are looking at. Click it to go to the tree.
#Share with your team
When you set "Save to" to "Team (workspace)", the log source is written to .vscode/logvisor.json in the workspace. When you share the file with Git, the log source also appears in your teammates' trees.
- The file is read and written only in trusted workspaces (VS Code Workspace Trust)
- Before a team-shared command log source runs for the first time, the command is shown for you to confirm (so that a repository you pulled cannot run commands you do not know). When the command changes, you are asked again
- The file never contains log contents or secrets
#Open together (merge by time)

You can read several log sources (for example, a web server, an API and a worker) as one table merged in time order. You can follow, along the flow of time, which servers an order passed through and in which order.
- How to open: in the log source tree, select several with Ctrl (Cmd on macOS) or Shift, and choose Open Together (Merge by Time) in the context menu. If you choose it with only one selected, or use the "..." menu at the top of the tree or LogVisor: Open Together (Merge by Time) in the Command Palette, you can choose the log sources in a list. Up to 16 can be merged
- Log source column at the start of each row: shows which log source a record comes from, with a mark in the color assigned to each log source and its name (the name is shown so that you do not have to rely on color alone). The details also show the name of the log source
- Log source chips (below the header): show the color, name and environment tag of each log source (and the host name for SSH hosts). Click a chip to hide the records of that log source (the chip is shown with a dotted border and strikethrough). Click it again to show them. The last one cannot be hidden
- How records are merged: the order of the records within each log source is kept, and the record with the oldest time is taken first. Lines with no time written, and lines whose time goes back from the previous one (such as milliseconds out of order in a log written by many threads), stay with the previous record, so stack traces and the flow of events are not broken. A log source in which no times can be read (such as one read with no format) is placed entirely before the other logs, and a notice is shown below the header. Set the format of that log source to one that can read times
- Filters, find (Ctrl+F), Show Surrounding Records, the context menu and export (in the merged order) work the same as in the viewer of one log source. The format is the one set for each log source (or detected automatically) and is not chosen in the header
- Live: when lines are appended to any log source, they are added to the merged table. If you are following the end, the viewer keeps moving with it
- Docker, journald and command logs can be merged too. Load Older Records reads older records in all those log sources
- Large logs are shown from the end right away. Row numbers are estimates until the index is built, and become exact once it is (until then, the count in the bottom bar has "about")
#Correct clock offsets

If a server clock is off, the merged order differs from what really happened. Click the clock button on the right of a log source chip, enter the number of seconds to add to the times of that log (for example, 2 if its clock is 2 seconds behind, or -1.5 if it is ahead), and click Apply.
- The seconds you add are shown on the chip and in the log source column, such as "+2 s". The times in the table and the details include the offset (the details add "The clock offset +2 s is added to the time."). The time range filter also uses the times with the offset
- Reset removes the offset. Changing the offset does not read the log again
#Views

Give a combination of log sources and filters a name and save it as a "view", and you can open it with the same look in one click from the Views section of the tree.
- Save: click the save button in the viewer header (Save as View…), and choose a name and where to save it (Only me or Team). A view remembers the log sources (in the order they were opened together), clock offsets, hidden log sources, and filters (text, levels, time range, field conditions)
- A time range such as "Last 15 minutes" is counted back from the newest record when you open the view. A range with specific times (such as one set with Show from Here in the context menu) is remembered with those times
- You can also make a view of one log source (which remembers its filters). Click Save as View… in the viewer of a saved log source
- Open: click a view in the Views section of the tree, or click ▷ on the right of the row. The header shows the name of the view. When you click Save as View… in a viewer opened from a view, you can choose to overwrite the view or save a new one
- Rename View… (F2) and Delete View (Delete; asks before deleting, and does not change the log sources or the logs) are in the context menu of a view
- Team-shared views are written to
viewsin.vscode/logvisor.json(the same file as the log sources). If a log source that a view refers to is not registered, you are told, and the view opens with the other log sources
#What AI agents may read (v0.4)

In v0.4, LogVisor gives AI agents (the chat in VS Code, Claude Code, Codex and others) tools (MCP) for reading the logs of your registered log sources. You choose for each log source whether agents may use it.
| Access | What agents can do |
|---|---|
| Read | Read, search and count the logs, and wait for new records. Secrets are hidden ("Hiding secrets" below) |
| List only | See the name and kind of the log source, and open it in a viewer to show you. They cannot read the contents of the logs |
| Not allowed | Agents cannot see the log source |
Choose it in AI agents in the add screen (or the edit screen). Follow the environment tag (the initial choice) decides by the environment tag: development and staging are Read, no tag is List only, and production is Not allowed. The card shows the current access and environment tag, such as "Now: Read (Staging)"
For log sources on SSH hosts, the environment tag of the host decides (when you change the environment tag of the host, the access changes too)
If you set a production log source to Read, a warning is shown. Agents may send the logs they read to their AI service, and hiding cannot recognize every secret, so check what will be passed before you choose it
In the tree, log sources that agents can read have "AI: read" added. When you hover over a row, you see the access (icon and name), and whether it follows the environment tag or was chosen for this log source

A view (opened together) follows the narrowest access among its log sources (if even one log source is Not allowed, so is the view)
For team-shared log sources, the access is also written to
agent(read,list,off) in.vscode/logvisor.jsonand shared. If it is not written, the environment tag decides. A log source with an unknown value is not read, and you are told in the Output panel
#Asking the first time
The first time an agent reads a log source, VS Code asks "Allow the AI agent (Claude Code) to read the logs of "staging app"?". The dialog also shows what is read (the file path or container; for SSH hosts, the host name), and whether it is a production log source or a team-shared one.
- Allow: remembered, and you are not asked again
- Allow Only This Time: allowed only while that agent is connected
- Deny: the log is not read. If the agent asks again right away, it is denied without a dialog for 10 seconds
What you allow is remembered together with what the log source reads (the kind, the location, the target such as the path or container, the environment tag, and the destination of the SSH host). If what it reads changes (including when you pull a team-shared definition with git pull), you are asked again. If you change only the name, folder, format or time zone, you are not asked again. Permissions for your own log sources are remembered on this machine for your user, and permissions for team-shared log sources are remembered in that workspace (you are asked separately for each, even if the IDs are the same).
Withdraw: use LogVisor: Withdraw AI Agent Permissions... in the Command Palette, and choose the log sources to withdraw. After you withdraw, permissions allowed only this time stop working too, and you are asked again the next time an agent reads.
#Hiding secrets
In what is passed to agents (the message, fields and raw text of records), recognized secrets are replaced with ***. This is not applied to the viewer on your screen. The number of hidden values is written in the result, so the agent knows that a value was hidden, not missing.
| Rule | What is hidden | Example |
|---|---|---|
| Values with secret names | Values whose names show that they are secrets (password, secret, token, api_key, authorization, cookie, session_id and others): in fields, and in name=value, name: value and "name": "value" in text. Names that only describe secrets (token_type, tokenUrl, max_tokens, secretName and so on) are not hidden |
password=*** |
| Secret command arguments | The value after --password, --token, --secret, --api-key and so on |
mysqldump --password *** --all-databases |
| Authorization headers | Bearer tokens and Basic credentials. The scheme (Bearer, Basic) is kept | Authorization: Bearer *** |
| Passwords in URLs | The password in postgres://user:password@host |
postgres://app:***@db:5432/orders |
| JSON Web Tokens | Tokens of the form eyJ….eyJ….… |
token *** |
| Private keys | The contents of PEM private key blocks | -----BEGIN PRIVATE KEY-----***-----END PRIVATE KEY----- |
| Keys of common services | AWS access key IDs, GitHub, GitLab, Slack (tokens and webhook URLs), Google API keys, Stripe secret keys, OpenAI and Anthropic API keys, npm tokens, SendGrid API keys | *** |
You can add the rules you need in the settings. Personal information such as email addresses is not hidden by default, so add rules for it if you need them.
// settings.json
"logvisor.agent.maskedFields": ["*mail*", "phone", "customer.name"], // Names of fields whose values are hidden (* and ?; not case sensitive)
"logvisor.agent.maskedPatterns": ["[\\w.+-]+@[\\w-]+(?:\\.[\\w-]+)+"], // Regular expressions for text to hide (this example is an email address)
"logvisor.agent.unmaskedFields": ["csrf_token"] // Names of fields not hidden because of their names
maskedFieldsandmaskedPatternsonly make hiding stronger, so workspace settings can add to them toounmaskedFieldsmakes hiding weaker, so it works only in your user settings. If it is written in workspace settings (in a repository), it is not used (so that a repository cannot weaken hiding and have secrets passed to agents). The rules for the forms of secrets (tokens, keys, passwords in URLs and so on) still apply to the names written inunmaskedFields- Each regular expression can be up to 500 characters, and ones that use backreferences (
\1) or nested repetition ((a+)+) are not used. For each one that is not used, LogVisor in the Output panel says which setting and which item it is, and why (the value is not written)
Things to keep in mind
- Hiding is there so that you do not pass secrets by accident. It can only recognize secrets with known names and forms (hexadecimal keys without a name, short arguments such as
mysql -p<value>, tokens in custom forms and so on are not hidden) - If an agent investigates by changing the text it searches for or the conditions it counts, it may be able to guess hidden values from the counts (for example, by counting the records that start with
password=a, then those that start withpassword=b, and so on). Hiding does not prevent this - Let agents read production logs only after you check what will be passed (try with staging logs, start with List only, add the missing rules in the settings, and so on)
#7. Docker and command logs
#Docker containers and Docker Compose
- When you open one, the last 10,000 lines (setting
logvisor.stream.initialTail) are read, and new lines are followed live. Load Older Records in the header (the up arrow button) reads older lines - Lines from standard error get the field
stream: stderr(you can filter by the value ofstream) - When the container stops, a "Stopped" mark is shown in the table; when it restarts, a "Restarted" mark is shown and reading continues
- The output that is read is stored in a temporary file of the extension. When it exceeds 256 MB (setting
logvisor.stream.spoolMaxMB), the older half is discarded and a mark is shown. When you close the viewer, the temporary file is deleted - You can set the path of
dockerwith the settinglogvisor.dockerPath(it can be set only in your user settings)


#journald

- When you open one, the last 10,000 entries (setting
logvisor.stream.initialTail) are read withjournalctl -o json, and new entries are followed live. Load Older Records reads 10,000 more entries before the oldest one in the table - When you set a unit, only the logs of that unit are read (
journalctl --unit). My user's logs isjournalctl --user(the services of your user) - Regular users can see only their own logs unless they are in the
systemd-journaloradmgroup. In that case, you are told in the header and in Test Read (reading continues) - If reading stops, for example because the connection was lost, Reconnect continues from the entry after the last one read (with no overlap)
- You can set the path of
journalctlwith the settinglogvisor.journalctlPath(it can be set only in your user settings). On SSH hosts, thejournalctlof the server is used
#Kubernetes (v0.3)
LogVisor reads Kubernetes pod logs with kubectl logs. It uses the kubectl and kubeconfig of this machine as they are, so if you can usually read a cluster with kubectl, you can read it without setting up anything else.

- Context: choose one of the contexts in kubeconfig. If you do not choose one, the current context (
kubectl config current-context) is used - Namespace: choose one from the list or type a name. If it is empty, the namespace of the context (or
defaultif it has none) is used. In clusters where you do not have permission to list namespaces, type the name - Pods to read: choose one of the following
- Workload: a deployment, stateful set, daemon set, job or replica set. When you open the log, LogVisor looks up the label selector that chooses the pods of the workload (
spec.selector) and reads all the matching pods - Pod: one pod, by name. If it is deleted and re-created with the same name (like the pods of a stateful set), the re-created pod is read
- Label selector: write it like
app=api,tier in (web)
- Workload: a deployment, stateful set, daemon set, job or replica set. When you open the log, LogVisor looks up the label selector that chooses the pods of the workload (
- Container: all containers (including init containers), or one container
- When you open it, the last 10,000 lines (setting
logvisor.stream.initialTail, for each pod and container) are read, and new lines are followed live. Lines from several pods are sorted in time order - The table shows Pod and Container columns (pod names are long, so the start is left out and the end that tells them apart is kept; the full name is in the field
podin the details). The format is detected from the contents without the prefix that kubectl adds ([pod/…/…]and the time). If the app does not write times, the time added by kubectl (the fieldkubernetes.timestamp) is used - While live, LogVisor checks the list of pods every 2 seconds. When a pod is added (you added replicas, or it was re-created), it starts reading the pod and shows a "Pod … was added" mark in the table. When a pod ends, it shows "Pod … ended", and when a container restarts, "… restarted (restart n)" (kubectl alone does not follow new pods and restarted containers)
- When no pods match any more (you scaled the deployment to 0), the state becomes "Stopped", and LogVisor waits for pods to be created
- Up to 20 containers (pods × containers) can be followed at once. If there are too many, narrow them down with a label selector or a container
- Load Older Records doubles the number of last lines and reads again. Old logs that the kubelet rotated (beyond 10 MB by default) cannot be read with kubectl, so records older than that cannot be read
- For pods that keep writing more than 20,000 lines per second, kubectl may miss some lines
- A kubeconfig path cannot be written in a log source (because the credential plugins in kubeconfig can run any command). kubectl reads kubeconfig as usual, from the environment variable
KUBECONFIGor~/.kube/config - You can set the path of
kubectlwith the settinglogvisor.kubectlPath(it can be set only in your user settings) - On SSH hosts, the
kubectlof the server and the kubeconfig of your user on the server are used

#Commands
For logs that no other kind can read, write a command that outputs them (for example, kubectl logs -f deploy/api or journalctl -f -u nginx -o short-iso).
- The command runs exactly as you write it, without a shell. Pipes (
|), redirects (>), and the expansion of~and$HOMEdo not work. Put arguments that contain spaces in quotes ("or'). If you need shell features, write something likebash -c "..." - You can set the working folder
- The output is read and stored the same way as for Docker. When the command ends, the state becomes "Stopped"
- The other commands that LogVisor runs are only read-only commands of
docker,journalctlandkubectl(docker logs,docker ps,journalctl -o json,kubectl logs,kubectl get,kubectl config viewand so on). A command log source runs what you wrote as it is, so do not write commands that change or delete anything
#8. SSH hosts
LogVisor connects to servers over SSH and reads the logs on them (files, rotated files, Docker containers, Docker Compose, journald, commands) in VS Code on this machine. Nothing is installed on the server. Files are read over SFTP, and the only commands it runs are fixed, read-only ones (docker logs, journalctl, grep and so on).
#Add a host
Add SSH Host... at the top of SSH Hosts in the LogVisor view opens the add screen.

- Choose How to start: New host (enter a host name and a user), From an ssh_config host (choose a
Hostin~/.ssh/config), or Paste an ssh command (readsssh -p 2222 -J bastion deploy@web01or anssh://URL) - Enter the Destination and name
- Destination: the host (a host name, an IP address, or a Host name in ssh_config), the port and the user. Empty fields use the values in ssh_config
- Authentication: Automatic (recommended; agent → keys → password, the same order as OpenSSH), Agent, Private key, or Password (also answers two-factor codes)
- Name and usage: the name shown in the tree, the environment tag (log sources on this host get the same tag), the folder, and where to save it (Only me / Team (workspace))
- Advanced: Jump host (ProxyJump), Do not run commands on the server (use SFTP only), Safe mode (for unstable servers), and the Keepalive interval
- Connection values in use on the right shows the values after ssh_config is read (host name, user, port, keys, jump host), and where each value came from
- Test Connection checks, in order, TCP, the SSH banner, the host key, authentication, SFTP, and the commands on the server (whether
stat,grep -b,dockerandjournalctlcan be used). For a host you connect to for the first time, it shows the fingerprint of the host key and asks whether you trust it - Keep the host with Save or Save and Add Log Source
ssh_config is read with ssh -G, the same way OpenSSH reads it (including Include, Match and Host with wildcards). If ssh is not found, ssh_config is read approximately, and Connection values in use says so.
#Connect
LogVisor connects when you open a log source on the host. You can also connect in advance: right-click the host and choose Connect.

- Passwords and passphrases: asked in an input box when needed. If you choose "Remember on this machine", they are kept in VS Code SecretStorage (never written to a file). If a remembered one does not work, it is deleted and you are asked again
- Host keys: checked against known_hosts (the same file the ssh command uses). For a new host, the fingerprint is shown and you are asked; if you trust it, the key is added to known_hosts. If the key differs from the one in known_hosts, LogVisor does not connect and warns you strongly (someone may be impersonating the server). If you changed the key on purpose, delete the old line from known_hosts
- One shared connection: log sources on the same host share one connection. The connection is closed 5 minutes (setting
logvisor.ssh.idleCloseMinutes) after the last log source is closed - When the connection is lost: LogVisor reconnects by itself, waiting a little longer each time. The viewer header shows "Reconnecting in 5 s", and Reconnect Now reconnects without waiting. If reconnecting needs a password, you are asked in a notification
- When you edit the host (v0.3): if you change the destination, user, authentication, jump host, safe mode, keepalive and so on, open connections are reconnected with the new values (also when you edit a host that is used as a jump host). The viewer header shows "Reconnecting with new settings…", and then "Reconnected with new settings" for a while once connected. Files continue from where they were, and command logs such as Docker logs are restarted from where they were. If the password is not set to "Remember on this machine", you are asked in a notification when reconnecting. If you change only the name, folder or environment tag, the connection is not renewed
- The host icon is green when connected. The description in the tree shows "Connected" and so on. Disconnect in the context menu closes the connection
#Add log sources on a host
Right-click a host and choose Add Log Source on This Host... to open the add screen with that host chosen as the location (you can also choose this machine or an SSH host in "Location" of the add screen).
- File: type the path, or use Browse… to go through the folders on the host in a VS Code Quick Pick and choose the file. Join rotated files can be used too
- Docker container, Docker Compose, journald, Kubernetes: the suggestions come from
docker,journalctlandkubectlon the host (for Kubernetes, the kubeconfig of your user on the server). If the host does not have the command, or the host is SFTP only (including hosts set to Do not run commands on the server), the card of that kind is dimmed, with the reason - Test Read: the first step checks whether LogVisor can connect to the host
Log sources on a host show the host name in their description in the log source tree, and are listed under the host in the SSH Hosts view. Their environment tag is the host's.
#Large files and filtering

- When you open a file, only the end is read and shown right away. The index of record counts is built in the background only for the last 64 MB (setting
logvisor.remote.indexTailMB). Earlier parts are read, only where needed, when you scroll back or jump to a time (the whole file is not transferred) - While live, LogVisor checks the size of the file at fixed intervals and reads only what was appended. It also recognizes rotation (the file being replaced)
- When you filter by text,
grepon the server finds the candidates, and only the parts with candidates are read (unless the filter is a regular expression or an exclusion). For regular expressions and exclusions, on hosts whose server has nogrep -b, and on SFTP-only hosts, the indexed range is read and filtered
#Heavy reads on production log sources (v0.4)
On production log sources (environment tag Production; for a log source on an SSH host, the environment tag of the host), LogVisor asks once, while the log source is open, before it starts a read that puts load on the server.
| Read | When it asks |
|---|---|
| Filtering and finding in a whole file on an SSH host | When the file is larger than the indexed end (logvisor.remote.indexTailMB; 64 MB by default), because it runs grep on the server or reads the whole file over SFTP |
Filtering and finding in a whole rotated log (.gz) |
When there are compressed files before the indexed end (because they are decompressed). For logs on SSH hosts, also when the file is large, as above |
| Load Older Records for Docker, Compose, journald, Kubernetes and commands | Always (because it runs the command on the server again to read more records) |
- For filtering (and finding), choose Filter the Whole Log or Only the Last … MB in the dialog. If you close the dialog, only the end is filtered
- When only the end is filtered, only the indexed end is filtered (and
grepon the server is not used), and "This is a production log source, so only the last … MB are filtered." is shown above the table. Click Filter the Whole Log in the notice to filter the whole file (clicking it counts as confirming) - Once you choose Filter the Whole Log (or Load Older Records), you are not asked again until you close that log source. In a viewer opened together, the names of the production log sources are listed and you are asked only once
- The end, surrounding records, jumping to a time, live, and the record count index are light reads, so you are not asked
- You are also asked when an AI agent reads in the same ways (and when it counts records for each value of a field). If you deny, the agent gets only the indexed end ("Tools for reading logs" in "9. AI agents"). For log sources you allowed in the viewer, you are not asked for agents either
- To stop being asked, turn off the setting
logvisor.safety.confirmHeavyReadOnProduction

#Import from SSHVisor (v0.3)
You can copy hosts that are shared with the team in SSHVisor (the sister tool for files over SSH; hosts in .vscode/sshvisor.json of the workspace) to LogVisor without entering them again. Hosts are imported only when you ask (changes made in SSHVisor are not applied automatically).

- Start with one of the following (they are shown when
.vscode/sshvisor.jsonhas hosts)- LogVisor: Import Hosts from SSHVisor... in the Command Palette
- The button at the top of the SSH Hosts view, or the link in the guidance shown when there are no hosts
- The Import from SSHVisor card in the Add SSH Host... screen
- When a host that log sources refer to but that is not registered (a "Not registered" row) is an SSHVisor host, the button on that row (it shows the list with that host chosen)
- In the list, check the hosts to import and click OK. Hosts that you have not imported yet are checked from the start
- Choose where to save the new hosts: Only me (recommended) or Team (workspace) (
hostsin.vscode/logvisor.json). If you want members who do not use SSHVisor to use the same hosts, choose Team (workspace)
- What is copied: the destination (host, port), the user, the authentication method, the key file path, the jump host, the environment tag, the folder, safe mode, whether commands are used on the server, and the keepalive interval. Items that only SSHVisor has (bookmarks, read-only, transfer settings) are not copied
- Passwords and passphrases cannot be copied (SSHVisor keeps them in its own SecretStorage, which other extensions cannot read). You are asked for them the first time you connect in LogVisor
- The host ID is the same as in SSHVisor if that ID is free. If team-shared log sources refer to the host by the same ID, they can then be read as they are
- If the jump host is the ID of another SSHVisor host, that host is imported too
- SSHVisor hosts that only you use cannot be imported (they are stored inside SSHVisor, and other extensions cannot read them)
- In an untrusted workspace (Restricted Mode),
.vscode/sshvisor.jsonis not read, so hosts cannot be imported
When you import again, the imported hosts (LogVisor remembers which SSHVisor host each one came from) that have differences are listed under "Hosts with differences (checked ones are overwritten)", with the before and after of each item (for example, "User: deploy → release"). Items you edited in LogVisor are shown as differences too. Only the hosts you check are overwritten (none are checked at first). LogVisor hosts with the same ID (that were not imported) are listed here too, and overwriting one makes LogVisor remember SSHVisor as its source. Overwriting a host does not change where it is saved.

You can edit imported hosts just like other hosts. The tooltip of the host says "Imported from SSHVisor".
#Open from the SSHVisor tree (v0.3)
In the host tree of SSHVisor, right-click a remote file and choose Open in LogVisor.

- If you have imported that host into LogVisor, the file opens as a file log source on that host. It is read from the end, appended lines are followed, and even a large file is indexed only at the end (Large files and filtering). LogVisor connects by itself, so the first time it asks for the password. + in the header (Save as Log Source) keeps the file as a log source on that host
- If you have not imported the host, the whole file is read and opened as an SSHVisor file (up to 64 MB; it is not followed live)
- The same applies to Open in LogVisor on
sshvisor://files in the Explorer when you have added an SSHVisor folder to the workspace

#Share with your team
Hosts saved to Team (workspace) are written to hosts in .vscode/logvisor.json. Passwords, passphrases and key contents are not written (only the paths of key files). Your teammates connect with their own ssh_config and keys.
{
"hosts": [
{ "id": "stg-web", "name": "stg-web", "folder": "shop", "environment": "stg", "host": "stg-web.example.com", "user": "deploy", "auth": { "type": "auto" } }
],
"sources": [
{ "id": "stg-app", "name": "order service", "kind": "file", "where": { "type": "ssh", "host": "stg-web" }, "format": "auto", "file": { "path": "/var/log/shop/app.log", "rotated": true } }
]
}
#9. AI agents
(v0.4)
You can let AI agents such as the chat in VS Code (GitHub Copilot agent mode and others), Claude Code and Codex read the logs you registered in LogVisor. Agents use the LogVisor tools through MCP (Model Context Protocol). LogVisor has no AI of its own: it does not call any models, and it holds no API keys.
Examples of what you can ask:
- "Using LogVisor, find the cause of the errors around 14:00 in the staging api log."
- "I started the batch. Wait until
job finishedappears in its log and tell me the result." - "Which warnings have increased since yesterday?"
- "Why is the record I selected in LogVisor there?"
- "Show me that error in LogVisor."
#Open the Connect AI Agents page
Connect AI Agents... in the ... menu of the Log Sources view (LogVisor: Connect AI Agents... in the Command Palette) opens the Connect AI Agents page. Choose the card of your agent to see the steps to register LogVisor with it.

#Register
| Agent | How to register |
|---|---|
| Chat in VS Code | No registration is needed. LogVisor registers itself with VS Code as an MCP server. Open the chat; if the harness below the input box is "Local", choose "Agent", and use "Configure Tools..." to check that LogVisor is on. If VS Code asks whether to trust or start the LogVisor server, allow it |
| Claude Code | Click Register with Claude Code (it registers LogVisor with claude mcp add --scope user of Claude Code). It works both in the Claude Code extension for VS Code and in Claude Code in a terminal. You can use it in conversations started after you register |
| Codex | Click Register with Codex (it adds [mcp_servers.logvisor] to the Codex settings file ~/.codex/config.toml; your other settings are kept) |
| Other agents | Register the command shown on the page (node and the path of the bridge file) as a stdio MCP server. A sample for agents that are registered with a JSON file is shown too |
- For Claude Code and Codex, you can also register without the button: run the command shown under Register with a command instead on the page in a terminal.
- Start terminal agents (Claude Code, Codex and others) in a folder that is open in VS Code. The agent uses LogVisor in the VS Code window that has that folder open.
- Terminal agents need Node.js (to start the LogVisor bridge with
node). If it is not found, the page says so. - In WSL and Remote - SSH windows, start the agent in a terminal on that remote machine (such as the terminal of the window), not on your local computer.
- If you close or reload the VS Code window, the agent reconnects to an open window at its next request.
#Connected agents
While an agent is connected to LogVisor, a robot icon and "LogVisor" appear on the right of the Status Bar. Hover over it to see the names of the connected agents (such as Claude Code). Click it to open the Connect AI Agents page. Connected Agents on the page also shows their names and when they connected.

#Tools for reading logs
Agents read logs with the following tools. All of them only read. You do not need to name the tools when you ask (the agent chooses them).
| Tool | What it does | Example request |
|---|---|---|
list_sources |
Lists the log sources the agent can use (name, folder, kind, environment tag, Read or List only, and whether it is being read live) | "What logs are in LogVisor?" |
describe_source |
The format of a log source, the number of records, the number per level, the time range, and the field names in recent records (values are not passed) | "What format is the api log? How far back does it go?" |
read_logs |
Reads records. By default, the last (newest) 100 records; it can also read further back or forward, around a time or a record, or from a time. It can narrow down by level, text, regular expression, field value and time range. It can also read several log sources merged by time | "Look at the staging api log around 14:00." "Read the records around that error." |
search_logs |
Searches by text, regular expression or field value, and returns the newest matches and the number of matches. It can include the surrounding records (like grep -C) |
"When, and how many times, did Payment timeout appear?" |
count_logs |
Counts without reading: per time interval (1 minute, 5 minutes, 10 minutes, 30 minutes, 1 hour, 1 day, automatic), per level, and per field value (most frequent first) | "Which warnings have increased since yesterday?" "How many errors are there for each status?" |
wait_for_logs |
Waits until a new record that matches the conditions is written, and returns it (30 seconds by default, 120 seconds at most; if it times out, it can wait again from where it left off) | "I started the batch. Wait until job finished appears, and tell me the result." |
- Times: times in results are passed with the time zone offset of the machine running VS Code (
2026-11-19T14:02:11.482+09:00). If you ask about "around 14:00", it is read as 14:00 in that time zone - Reading a little at a time: one answer has 100 records by default (500 at most) and up to 40,000 characters. In each record, the message and field values are cut at 500 characters, and continuation lines (stack traces and so on) at 2,000 characters. Agents read further with the position (cursor) attached to the result. When the log is read again (truncation, replacement, choosing another format), the agent is told that earlier positions can no longer be used
- Logs open in a viewer: for a log source open in a viewer, the agent reads by borrowing the viewer's contents (the viewer's filters are not changed; the format is the one chosen in the viewer). A log source that is not open is opened without a viewer, and closed 5 minutes after it is no longer used (up to 6 at once). Docker, Compose, journald, Kubernetes and command logs keep their commands running while they are open, so the commands are not restarted for every read. If you later open the same log source in a viewer, the one the agent opened is used as it is
- SSH hosts: for agent requests, LogVisor connects without asking for input (keys, the SSH agent, passwords remembered on this machine). If a password or passphrase must be entered, or the key of a new host must be confirmed, it refuses without connecting, and shows a notification in VS Code, "The AI agent (…) is trying to read "…"", with a Connect button. After you click it and connect, ask the agent again (the notification for the same host appears at most once every 30 seconds)
- Team-shared commands: command log sources that you have not confirmed yet are not run at an agent's request. Open them in a viewer once to confirm them
- Heavy reads on production log sources: when a production log source is set to Read, LogVisor asks with a dialog before an agent starts a read that puts load on the server (searching a whole file on an SSH host, searching that decompresses
.gzfiles, loading older records, counting per field value). If you Deny, searching and counting use only the indexed end, and the agent is told so (loading older records is not done). For 1 minute after you deny, requests for the same log source are denied without asking. If you allowed it in the viewer, you are not asked ("Heavy reads on production log sources") - Fields that are not counted: values of fields whose names show that they are secrets (password, token and so on) are not counted per value (so that the values cannot be guessed from the counts)
- Regular expressions: the regular expressions of the tools are also applied to lines appended live, so patterns that can take long (backreferences, nested repetition) and patterns longer than 1,000 characters are refused. When you ask an agent to wait for something, simple text works best
#Ask about the log you are viewing (get_editor_context)
When you ask something like "Why is the record I selected in LogVisor there?", the agent reads the state of the log viewer in front.
- What is passed: the log sources (name, ID, environment tag, kind; for a viewer opened together, each log source and its clock offset), the filters (text, levels, field conditions, time range), the find (Ctrl+F) text, the counts, the live state, the format, the visible time range, and the selected record
- The selected record is passed only for log sources whose AI access is Read. The first time, you are asked ("Asking the first time"), and secrets are hidden. The record comes with a cursor (
@…), which the agent uses to read the records around it - For List only log sources, only the name is passed (no filters, positions or records). For Not allowed log sources and for logs that are not registered (files opened directly, containers chosen and opened directly), the answer is the same as when you are not viewing a viewer. A viewer opened together follows the narrowest access among its log sources
- When the agent's chat is in an editor tab (as with the Claude Code extension), the log viewer in front in another editor group is used
- Hiding is also applied to the filter text and the values of field conditions (because those values may have been taken from the log)
#Agents open logs for you (open_in_editor)
When you ask something like "Show me that error in LogVisor", the agent opens the log source in a viewer (several log sources are opened together), and applies a time or record position and filters. The contents of the log are not returned to the agent.

- When filters are applied to a viewer that was already open, Back to Filtered View in the header returns to the original filters
- Log sources whose AI access is List only can be opened too (because they are only shown to you). Not allowed log sources cannot be opened
- If it means filtering a whole production log source, you are asked as usual ("Heavy reads on production log sources")
- Filters that the viewer does not have (text that records must not contain) cannot be used
#Ask AI
Right-click a record in the viewer and choose Ask AI about This Record..., or click Ask AI in the details, to create a request that asks an agent to investigate the record. LogVisor does not call any AI; you are the one who sends the request.

| Choice | What it does |
|---|---|
| Ask in the VS Code Chat | Opens the VS Code chat in agent mode with the request filled in. Check it before you send it |
| Copy the Request for Another Agent | Copies the request. Paste it into the chat of Claude Code, Codex or another agent |

The request contains the name and ID of the log source, the environment tag, the format, the filters, and the selected record with the 5 records before it and the 2 records after it (the selected one is marked with >).
- Secrets in the records are hidden too. The number of hidden values is also written
- Records from log sources whose AI access is not Read are not included, and the request says so (the same applies to logs that are not registered)
- The surrounding records are shortened, and if the whole request is long, it is cut partway
- If you turn off the setting
logvisor.agent.enabled, the menu item and the button are not shown - Agents that can use the LogVisor tools can read the surrounding records with
read_logs, and what you are viewing withget_editor_context
#What LogVisor protects

Read only: agents can only read logs. They cannot change or delete logs, add or edit log sources, or run commands of their own.
What agents may read: agents can use only the log sources you registered, as far as you allow for each one. If you do not choose, the environment tag decides (you can change it for each log source. What AI agents may read).
Environment tag Default access Development Read Staging Read No tag List only (the name is visible, but the contents cannot be read) Production Hidden (agents cannot see it) Asking the first time: the first time an agent reads a log source, LogVisor asks whether to allow it, allow it only this time, or deny it.
Hiding secrets: passwords, tokens, cookies, private keys and so on are hidden as
***in what is passed to agents. Your screen shows them without hiding. Hiding cannot find every secret. Check production logs before you let agents read them, and add rules in the settings for personal information such as email addresses (Hiding secrets). Also, hiding is there so that you do not pass secrets "by accident"; it cannot prevent hidden values from being guessed from search or count results.Locations are not told: agents refer to log sources by name. Host names, users, file paths, containers and commands are not told to agents (anything written inside the logs is passed as part of the logs).
Log contents are data: logs contain text from outside, such as requests and user input, which may be written to mislead agents. LogVisor tells agents that logs are data, not instructions. The tools only read, so text in a log cannot make LogVisor change anything.
Result limits: one answer has 100 records by default (500 at most) and up to 40,000 characters (setting
logvisor.agent.maxResultLength), and long records are cut. Agents read a little at a time, not the whole log.Sent to the AI service: what an agent reads is sent to the AI service of the agent. Allow only logs that may be sent there.
In windows of untrusted workspaces (Restricted Mode), agents cannot use LogVisor.
#Stop the integration
Click Turn Off the Integration on the page, or set the setting logvisor.agent.enabled to false, and LogVisor stops listening and is removed from the MCP servers of VS Code. What you registered with Claude Code and Codex remains, so if you no longer need it, remove it with claude mcp remove --scope user logvisor, or delete the [mcp_servers.logvisor] lines in ~/.codex/config.toml.
#10. Keyboard shortcuts
#Log viewer
| Key | Action |
|---|---|
| ↑ / ↓ | Select the previous or next record |
| Page Up / Page Down | Move one screen at a time |
| Home / End | Move to the start or the end (End resumes following live) |
| → / ← | Expand or collapse the continuation lines of a multi-line record |
| Enter | Open the details |
| Ctrl+F (Cmd+F on macOS) | Find |
| F3 / Shift+F3 | Next or previous match |
| Esc | Close the find box |
| Shift+F10 | Context menu of the selected record |
| ← / →, Home / End (on the bars of records over time) | Select a bar and read its time range and count (v0.3) |
| Enter (on the bars of records over time) | Show only the time range of the selected bar (v0.3) |
#Log source tree
| Key | Action |
|---|---|
| Enter | Open |
| F2 | Edit (rename, for views) |
| Delete (Cmd+Backspace on macOS) | Delete (views too) |
| Ctrl / Shift + click | Select several (to open them together) |
F2 and Delete act on the row you moved to with the arrow keys (the row with a focus border).
#11. Settings
| Setting | Default | Description |
|---|---|---|
logvisor.dockerPath |
(empty) | Path of the docker command. Leave it empty to find the command in PATH. It can be set only in your user settings (so that a workspace cannot make LogVisor run another program) |
logvisor.journalctlPath |
(empty) | Path of the journalctl command (for journald log sources on this machine). Leave it empty to find the command in PATH. It can be set only in your user settings |
logvisor.kubectlPath |
(empty) | Path of the kubectl command (for Kubernetes log sources on this machine; v0.3). Leave it empty to find the command in PATH. It can be set only in your user settings. kubectl reads kubeconfig as usual |
logvisor.live.pollMilliseconds |
1000 |
Interval in milliseconds to check whether a log file has changed. LogVisor also watches files, but watching does not work on some drives (for example /mnt/c in WSL) |
logvisor.stream.initialTail |
10000 |
Number of the last lines to read when opening Docker container, Docker Compose, command, journald and Kubernetes logs (also the number of entries that Load Older Records adds for journald; for Kubernetes, per pod and container) |
logvisor.stream.spoolMaxMB |
256 |
Maximum size in MB of the temporary file that stores the output of Docker containers, Docker Compose, commands and Kubernetes. When it is exceeded, the older half is discarded |
logvisor.ssh.path |
(empty) | Path of the ssh command used to read ssh_config with ssh -G. Leave it empty for automatic. It can be set only in your user settings |
logvisor.ssh.configFile |
(empty) | The ssh_config file to read. Leave it empty for the default (~/.ssh/config and the system-wide file). It can be set only in your user settings |
logvisor.ssh.agent |
auto |
The SSH agent to use: auto, a socket or pipe path, pageant, or none. It can be set only in your user settings |
logvisor.ssh.keepaliveSeconds |
15 |
Seconds between keepalive messages. ServerAliveInterval in ssh_config and the host's own setting take precedence. 0 turns them off |
logvisor.ssh.timeoutSeconds |
20 |
Seconds to wait when connecting, not counting the time you spend entering passwords and so on |
logvisor.ssh.idleCloseMinutes |
5 |
Minutes to keep the connection open after the last log source on it is closed |
logvisor.remote.indexTailMB |
64 |
On SSH hosts, the size (MB) at the end of a file that is indexed in the background |
logvisor.agent.enabled |
true |
The integration with AI agents (v0.4). When it is off, agents cannot use LogVisor (9. AI agents) |
logvisor.agent.maxResultLength |
40000 |
The maximum number of characters that LogVisor returns to an AI agent in one answer (v0.4) |
logvisor.safety.confirmHeavyReadOnProduction |
true |
On production log sources, ask once while the log source is open before reading in a way that puts load on the server (filtering or finding in a whole file on an SSH host, decompressing rotated .gz files, loading older records) (v0.4. Heavy reads on production log sources) |
logvisor.fileAssociations |
*.log and others |
File name patterns for which the Explorer context menu shows Open in LogVisor and Save as Log Source. Only patterns of the form *.extension and file names without wildcards take effect (the context menu always shows them for rotated logs, *.log.*) |
logvisor.agent.maskedFields |
[] |
(v0.4) Names of fields whose values are hidden as *** in what is passed to AI agents, in addition to the built-in rules (* and ? wildcards; not case sensitive; for example, *mail*). They also apply to name=value in text. Workspace settings can add to them |
logvisor.agent.maskedPatterns |
[] |
(v0.4) Regular expressions for text that is hidden as *** in what is passed to AI agents, in addition to the built-in rules. Up to 500 characters each; backreferences and nested repetition cannot be used. Workspace settings can add to them |
logvisor.agent.unmaskedFields |
[] |
(v0.4) Names of fields that the built-in rules do not hide by their names (* and ?). The rules for the forms of secrets still apply. Because it weakens hiding, it can be set only in your user settings |
#12. Troubleshooting
| What happens | What to check |
|---|---|
| You are told that you do not have permission to read the file | Check who can read the file with ls -l. Logs under /var/log can often be read only by members of the group adm (join it with sudo usermod -aG adm $USER, then sign in again) |
| Docker log sources are dimmed and cannot be chosen | docker was not found. Install Docker, or write its path in the setting logvisor.dockerPath |
| You are told that Docker is not running | Start Docker Engine or Docker Desktop, and click Reconnect |
| You are told that you do not have permission to use docker | Add your user to the group docker, and sign in again |
| You are told that the container was not found | Check the name with docker ps --all. For Compose, check the project name with docker compose ls |
| You are told that the command was not found | Commands run without a shell, so write the full path of a command that is not in PATH |
| Times or levels cannot be read, or the columns are misaligned | Choose another format with Format in the header. If no format fits, write a custom format with the pencil button next to it (Custom formats). If the time zone is off, set it in "Advanced" of the log source |
| Japanese or other non-ASCII text is garbled | Choose the encoding (Shift_JIS and so on) in "Advanced" of the log source |
| New lines do not appear live | File watching does not work on /mnt/c in WSL and similar places. LogVisor checks at the interval of the setting logvisor.live.pollMilliseconds, so wait a little. Also check that the viewer is not paused |
| You are told that the regular expression was stopped | The regular expression takes too long. Make it simpler, or filter by plain text |
| "Building the index with this format took too long, so it was stopped." is shown (v0.3) | The regular expression of the custom format never finished on some line. Each line is being read as one record again. Make the regular expression simpler (for example, do not put several .* in a row), and choose the format again with Format in the header |
| "This is a production log source, so only the last … MB are filtered." is shown (v0.4) | You were asked about filtering the whole production log source, and only the end is being filtered. To filter the whole log, click Filter the Whole Log in the notice (Heavy reads on production log sources) |
| LogVisor cannot connect to an SSH host | Right-click the host and use Test Connection to see at which step it fails. Also check the values read from ssh_config in Connection values in use |
| You are told that the host key is different, and LogVisor does not connect | If the server key was changed on purpose, delete the old line in known_hosts (ssh-keygen -R hostname). If you do not know why it changed, check with the administrator of the server |
| Docker or journald cannot be chosen on an SSH host | The host does not have docker or journalctl, or it is an SFTP-only host. Check "Commands on the server" in Test Connection |
| Kubernetes log sources are dimmed and cannot be chosen | kubectl was not found. Install kubectl, or write its path in the setting logvisor.kubectlPath. You can also read logs with the kubectl on the server of an SSH host |
| You are told that LogVisor cannot connect to the cluster | Check that the cluster is running and that you can reach it (through a VPN and so on) (kubectl cluster-info). Without a kubeconfig, kubectl tries to connect to localhost:8080 |
| You are told that LogVisor cannot sign in to the cluster | Sign in again with the CLI of your cloud or similar (the token may have expired). Also check that the credential plugin in kubeconfig (aws, gke-gcloud-auth-plugin, kubelogin and so on) is in PATH as seen from VS Code |
| You are told that you do not have permission (Forbidden) | Ask the cluster administrator for permission to read pod logs (get on pods/log, list on pods) |
| You are told that the pod or workload was not found | Check the name and the namespace (kubectl get pods -n namespace). If you chose a pod by name and that pod was deleted, wait for it to be re-created |
| On an SSH host, you are told that kubeconfig cannot be read | On k3s servers, /etc/rancher/k3s/k3s.yaml can be read only by root. Copy it to ~/.kube/config of your user on the server |
| You are told that there are too many pods and containers to follow | Up to 20 containers can be followed at once. Narrow down the pods with a label selector, or choose one container |
| Team log sources do not appear | Check that the workspace is trusted, and that .vscode/logvisor.json exists |
| The button to import from SSHVisor does not appear (v0.3) | Only team-shared hosts in .vscode/sshvisor.json of the workspace can be imported. Check that the file exists and that the workspace is trusted. SSHVisor hosts that only you use cannot be imported |
| You are asked for the password of an imported host | Passwords and passphrases cannot be copied from SSHVisor. Enter it once in LogVisor and choose "Remember on this machine", and you will not be asked again |
| You are told that the host contains characters that cannot be used (v0.3) | Spaces and shell symbols ($ ; ` |
If something still does not work, look at LogVisor in the Output panel (it never contains log contents or secrets).
#13. FAQ
Does LogVisor change or delete logs? No. LogVisor only reads logs. Deleting a log source only removes it from the LogVisor list; the log itself is not touched.
Can it handle large files? LogVisor does not load the whole log into memory; it reads only the part you can see. The record count index and filtering run in workers (separate threads), so VS Code does not freeze. For 1 GB, indexing takes about a second and filtering about a second (with a 4-core CPU).
Are log contents sent anywhere? No. LogVisor sends no usage data, and it connects over the network only to the SSH hosts you register (to read the logs on those hosts). The output of Docker and commands is stored in temporary files of the extension and deleted when you close the viewer. When you let AI agents read logs (v0.4), what an agent reads is sent to the AI service of the agent (9. AI agents).
Can it read logs on servers?
Yes. Register an SSH host, and you can read files, Docker, journald, Kubernetes and command logs on the server (8. SSH hosts). In a VS Code window connected to a server with Remote - SSH, you can also read the files and docker of that server as "this machine".
Where are SSH passwords kept?
Only when you choose "Remember on this machine" are they kept in VS Code SecretStorage (the key store of the OS). They are never written to settings, .vscode/logvisor.json or the Output panel. When you delete a host, the remembered ones are deleted too.
I want log files to always open in LogVisor when I click them. In the Explorer, right-click a log file, and choose LogVisor with Configure default editor for '*.log'... at the bottom of the Open With... list. Log files then always open in LogVisor.
#14. Limitations of this version
The following are planned for later versions.
- For Kubernetes, the logs of a container before it crashed (
kubectl logs --previous), and reading a CronJob by pointing at it - Watches that notify you when records that match set conditions appear (v0.5)
Also, the following cannot be done in this version.
- Wrapping long lines in the table (see the whole text in "Raw" in the details)
- Entering a time range as dates and times (use Show from Here and Show until Here in the context menu, or drag across the bars of records over time)
- Opening log files compressed with gzip or similar
- Importing SSHVisor hosts that only you use (only team-shared hosts (
.vscode/sshvisor.json) can be imported)