Troubleshooting
A program cannot write to its log while TKTail has it open
TKTail opens files with full sharing (read, write and delete), so normal log writers keep
working and files can be rotated or deleted while they are open. Some writers, however, ask
Windows for exclusive write access and fail while any program reads the file. Windows
PowerShell 5.1 Add-Content is one example - it fails the same way with other viewers.
Programs that open the file with sharing (most logging libraries, .NET FileStream with
FileShare.ReadWrite) are not affected.
New lines appear late on a network share
The status bar says how the file is followed: AUTO 30 s means TKTail checks the share every
30 seconds because nothing changed for a while - the next change it sees brings it back to every
second. Some shares send no change notifications and some servers report a new size only after
their write cache is flushed; lines then appear with that delay. If you need a fixed, short
delay, choose Poll with a shorter interval in the Inspector (Monitoring > Refresh); each
check is one small request to the server. See
Files on network shares.
The status bar says NO EVENTS
The file is in Event mode, and its folder does not deliver change notifications now (a share that dropped them, a folder that was removed). In Event mode TKTail does not check the file itself, so new lines appear only when the notifications work again - TKTail tries to restore them, at most once a minute, and then catches up. To have the file checked, choose Auto or Poll in the Inspector (Monitoring > Refresh).
The status bar says OFFLINE
The share holding the file cannot be reached. TKTail keeps what it has shown and tries again with growing pauses (up to a minute); nothing needs to be reopened when the share is back. The Inspector’s Monitoring > Connection row says how many tries failed.
Reveal Current File stops before the file’s folder
The folder tree does not show hidden folders unless … > Show Hidden Items is on, so a
path through AppData, for example, ends at the closest visible folder. The file list still
shows the right folder and selects the file.
A folder shows “more files not shown”
To stay fast, the file list shows at most 100,000 files of one folder. Type a filter (for
example *.log): in very large folders the filter is applied while the folder is read, so
matching files beyond that limit are found.
The Windows context menu says “(not available)”
Windows did not provide a menu for that item, or one of the programs that add items to it failed. TKTail keeps running; the rest of its own menu works.
Something else is wrong after changing settings
- Settings > Restore Defaults… resets the page you are on (see Settings).
- Start once with
--safe-modeto ignore the saved workspace, monitored files, alert rules, custom formats and folder formats (.tktail). tktail settings listshows every setting with its value; Settings > Files & Storage (ortktail portable status) shows which data folder is used.- Settings live in
settings.iniin the data folder (Where TKTail stores data). Rename the file to start with defaults; a line TKTail cannot read is listed in Problems.
Finding out what TKTail did
View > Tool Views > Output lists what TKTail itself did and what went wrong - files
that disappeared or were rotated, files that could not be opened, settings that could not be
saved. The same entries are in logs\tktail.log in the data folder (Settings > Logging shows it and how much
is kept); Open Log Folder in the Output panel opens that folder. For more detail, choose Debug in the
Output view, or a lower level in Settings > Logging.
Reporting a problem
Please include what you did, what you expected and what happened, plus the output of
tktail diagnostics (version, build, Windows version, settings state - without file paths
or log contents unless you add --include-paths). The application log (tktail.log, see above)
helps too; it contains no file paths unless log.includePaths is on.