QSTAIL(1) qstail man page QSTAIL(1)NAME
qstail - Utility prints the end of a log file starting at the specified pattern.
SYNOPSIS
qstail -i <path> -p <pattern>
DESCRIPTION
qstail shows the end of a log file beginning with the line containing the specified pattern. This may be used to show all lines which has
been written after a certain event (e.g., server restart) or time stamp.
OPTIONS -i <path>
Input file to read the data from.
-p <pattern>
Search pattern (literal string).
SEE ALSO qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1)AUTHOR
Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/
mod_qos utilities 10.8 June 2012 QSTAIL(1)
Check Out this Related Man Page
QSGREP(1) qsgrep man page QSGREP(1)NAME
qsgrep - Print matching patterns within a file.
SYNOPSIS
qsgrep -e <pattern> -o <sub string> [<path>]
DESCRIPTION
qsgrep is a simple tool to search patterns within files. It uses regular expressions to find patterns and prints the submatches within a
pre-defined format string.
OPTIONS -e <pattern>
Specifes the search pattern.
-o <string>
Defines the output string where $0-$9 are substituted by the submatches of the regular expression.
<path> Defines the input file to process. qsgrep reads from from standard input if this parameter is omitted.
EXAMPLE
Shows the IP addresses of clients causing mod_qos(031) messages):
qsgrep -e 'mod_qos(031).*, c=([0-9.]*)' -o 'ip=$1' error_log
SEE ALSO qsexec(1), qsfilter2(1), qsgeo(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1), qstail(1)AUTHOR
Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/
mod_qos utilities 10.8 June 2012 QSGREP(1)
Hi guys,
I need to search for a particular pattern within the first 5 chars of the line. If the pattern is found then output the whole line. Unfortunately grep only searches the whole line
For example if i am searching for aaaaa in these lines
aaaaabbbbbccccc
bbbbbcccccaaaaa
grep... (6 Replies)
hi there,
i have to read lines from the file, where the line is just above the pattern am looking for
typically this looks like this
<time-stamp>|-----
<pattern am searching >......
<time-stamp>|.....
<some garbage >
....
the log file is big
wc -l ~/log/ompe.log.20081203... (8 Replies)
Input file:
Sample1 Type pattern 842 3150
Sample1 Type range 842 3150
Sample1 Type pattern 842 1127
Sample1 Type option 842 1127
Sample1 Type length 1483 1603
Sample1 Type pattern 1483 1603
Sample1 Type length 1698 1747
Sample1 Type option 1698 1747
Sample1 Type length 1868 1935
Sample1... (13 Replies)
Hi,
I have a log file which contains lines like below:
2010-07-19 07:13:19,021 ERROR system ...(text)
2010-07-19 07:22:03,427 ERROR system ...(text)
class com... (text)
2010-07-19 07:23:19,026 ERROR system ...(text)
class com... (text)
each line is a separate line... I am given the a... (11 Replies)
Hi,
I have a file which contains the below data. I want to search for a pattern server="http://bushby.mis.amat.com:12440" and remove it from the file.
Please let me know how can i do this.
<Object name="reverse-proxy-/endeavour/">
ObjectType fn="http-client-config" timeout="1800"... (6 Replies)
Hi
i have a file which has mutiple line in it.
inside that i have a pattern similar to this
/abc/def/hij
i want to fine the pattern starting with "/" and get the first word in between the the symbols "/" i.e. "abc" in this case into a variable.
thanks in advance (13 Replies)
Dear Experts,
I need to extract specific records from one file which has multiline records.
Input file pattern is:
============
aaaaaaaa
bbbbbbbb
asdf 1234
cccccccc
dddddddd
============
aaaaaaaa
bbbbbbbb
qwer 2345
cccccccc
dddddddd (7 Replies)
Hi,
I have a large, multiline log file.
I have used pcregrep to extract all entries in that log that match a particular pattern - where that pattern spans multiple lines.
However, because the log file is large, and these entries occur every few minutes, I still output a very large amount... (6 Replies)
can any one help how to stop search pattern end of line. It means i am searching one pattern from line 1 and search when it reaches the end of line in a file it should be stop. (6 Replies)
Hi All,
I am new to AIX unix . i need to grep for a pattern and if pattern is found then i need 3 before the pattern line found and 3 lines after the pattern found. (11 Replies)
Hi all!
Thanks for taking the time to view this!
I want to grep out all lines of a file that starts with pattern 1 but also does not match with the second pattern.
Example:
Drink a soda
Eat a banana
Eat multiple bananas
Drink an apple juice
Eat an apple
Eat multiple apples
I... (8 Replies)
Hi All,
need your help , i want grouping complicated log below became count data message error per 5 minutes.
log some like below :
/data/logs/ag/tdr25001.log:2019-07-20... (8 Replies)