From 2247ce22edd4629c67c2ea793e30c234e7fbbb96 Mon Sep 17 00:00:00 2001 From: Forza Date: Tue, 25 Mar 2025 12:21:58 +0100 Subject: [PATCH] logparse: add --tail mode --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 434dd03..3053a38 100644 --- a/README.md +++ b/README.md @@ -12,15 +12,17 @@ The config file allows for changing default output format, add additional select ## Usage ```text -Usage: /usr/bin/logparse [-c | -C | -s "selectors"] [-F ] filename +Usage: /usr/bin/logparse [-c | -C | -s "selectors"] [-F ] [-t [NUM] [-f]] filename Options: -c, --common Apache Common Log Format (default) -C, --combined Apache Combined Log Format -s, --selector Use a space separated list of selectors -F, --config-file Use a configuration file + -t, --tail [NUM] Output the last NUM lines from log file (default: 15) + -f, --follow Continuously monitor log file for new entries -h, --help Show this help message and exit ``` ## Examples -Example usage and descriptions is available on the wiki https://wiki.tnonline.net/w/Linux/logparse \ No newline at end of file +Example usage and descriptions is available on the wiki https://wiki.tnonline.net/w/Linux/logparse