Primary Purpose:
SnakeTail is a robust Windows utility designed for monitoring growing text log files and Windows Event Logs. It provides an efficient way to track changes in real-time, making it essential for managing system logs effectively.
Key Features:
Monitor Large Text Logs & Windows Event Logs: Track extensive log files and event logs without needing administrative privileges.
Multiple Window Modes: Choose between MDI, Tabbed, or Floating layouts for flexible monitoring setups.
Session Management: Save and load entire window sessions, enhancing workflow continuity by loading sessions at startup with command-line parameters.
Color Highlighting & Regex Support: Quickly identify relevant information with color-coded highlights based on keyword matches, including regex support.
Advanced Search & Filtering: Conduct searches across logs and filter Event Logs using regular expressions for precise data retrieval.
Remote Desktop Compatibility: Functions effectively in remote environments, supporting a wide range of Windows operating systems from Windows 2000 to Win7.
Audience & Benefits:
Ideal for system administrators, developers, and IT professionals, SnakeTail facilitates efficient troubleshooting and system management by providing real-time log insights. Its flexibility across different window modes and support for regex-based filtering make it a versatile tool for enhancing operational efficiency.
Installation:
SnakeTail can be installed via winget, ensuring a smooth setup process.
This description encapsulates the core functionalities and benefits of SnakeTail, highlighting its suitability for professionals who require reliable log monitoring solutions.
README
snaketail-net
Tail utility for monitoring text log files and Windows EventLog
Monitor "large" text log files
Monitor GZip/Gz log files
Monitor Windows Event Logs (Without needing administrator rights)
The SnakeTail folder might not exist and must then be created manually.
The option File > Restore Session on Startup automatically saves and restores the previous session using the default SnakeTail.xml file-location (see above). If no configuration file exists, it is created under %APPDATA%\SnakeTail. If launching SnakeTail with a new log-file, then it will be opened on top of the restored session, but custom session .xml files will be opened separately.
Keyword highlight
Keyword rules (plain text or regular expression, optionally case sensitive) are configured per window, and decide what should happen when a line matches. Each rule can combine the following actions ("Keyword Match Actions"):
Action
Description
Line Coloring
Show the matching line with a custom text and background color
Alert Highlight
Mark the matching line as important (See below)
Window Title Counter
Count the matching lines, and show the count as Hits= in the window title
Launch External Tool
Launch an external tool when a line matches (See below)
Alert Highlight enables jumping with ALT+KeyUp / ALT+KeyDown between important events in the log, and using Display tab icon on log change it will highlight not-selected tabs with warning/alert icon.
Use-case Examples:
Find the errors quickly: Use Line Coloring + Alert Highlight on ERROR and Exception, and jump between the highlighted lines using ALT+KeyUp / ALT+KeyDown instead of scrolling through the log.
Play a sound on errors: Combine with sound notification using External Tool, together with easily jumping between the highlighted lines.
Notice problems in background tabs: With many open windows, the warning icon on the tab shows which log file just got an alert match.
Color without noise: Line Coloring without Alert Highlight is for lines that should stand out visually, but should not be jump targets or trigger the tab warning icon. Ex. color the line green for success (completed successfully) or grey for DEBUG.
Count without alerting: Use Window Title Counter without Alert Highlight to keep track of how many times something happens (Ex. Login failed), without being alerted for each one.
The rules are evaluated in list order, so put the most specific rules first.
External tools
External tools can be configured and bound to a custom shortcut key. They can also be launched automatically when a keyword matches (Trigger execute on highlight).
Use-case Examples:
Play a sound on keyword match: Configure an external media player to play a WAV file when a keyword such as ERROR is detected.
Open the log in another application: Bind a shortcut key to launch a text editor or diff tool on the current file.
Truncate or delete the active log file: Bind a shortcut key to a tool that truncates or deletes the currently tailed file.
Run diagnostics on demand: Bind a shortcut key to a script that collects information from the system being monitored.
React to log events: Launch a script that restarts a service or sends a notification when a specific keyword is detected.
The following tokens can be used in Command, Arguments and Initial directory. They are replaced with their value when the tool is launched. Environment variables (Ex. %TEMP%) are also expanded.
Token
Description
$(FilePath)
Full path of the file currently being tailed (For rolling filenames and wildcards it is the file currently displayed)
$(FileDirectory)
Directory of the file currently being tailed
$(FileName)
File name (with extension) of the file currently being tailed
$(LineText)
Text of the matching line when launched by keyword match, or the selected line when launched manually
$(LineNumber)
Line number of $(LineText)
$(KeywordText)
The keyword that matched. Empty when launched manually
$(ViewName)
Title of the tail window
$(ServiceName)
Name of the monitored service (Empty when not monitoring a service)
$(ServiceMachineName)
Machine name of the monitored service (Empty when not monitoring a service)
$(SessionPath)
Full path of the currently open session file (Empty when no session is open)
$(SessionDirectory)
Directory of the session file the window was loaded from
$(SessionFileName)
File name (with extension) of the currently open session file
$(SessionName)
File name (without extension) of the currently open session file