03-01-2011
Thank you very much for replying,
i would like to read the error parts inside the logs or the Warnings, or sentences like "Could not open ..."
So, i was thinking of log_analysis or logwatch.
What is your opinion??
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all ,i would like a shell script that parses log files and checks the contents for any anonalities,please help,thanks (4 Replies)
Discussion started by: trueman82
4 Replies
2. Shell Programming and Scripting
Hi,
This is my first thread on this forum.
I have an urgent requirement where I have to write a shell script to
- scan through the mails one by one,
- pick up the time when that mail is received,
- parse through the contents of that mail and pick up relevant information and... (4 Replies)
Discussion started by: its-ashish
4 Replies
3. Shell Programming and Scripting
I am writing a unix script that will parse a CSV and edit the values. My CSV looks like this
0,0,0,0,1,0,1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0
10,11,7,0,4,12,2,3,7,0,11,3,12,4,0,5,5,4,5,0,8,6,12,0,9,3,3,0,2,7,8... (16 Replies)
Discussion started by: RJ17
16 Replies
4. Shell Programming and Scripting
Hi all,
I need to parse a file which is having this format:
Details: 1
Name{
first=james
second=steven
}
Sibling{
first=2
second=3
}
Age{
first=13
second=14
}
Friend{
jessy
}
Details: 2 (8 Replies)
Discussion started by: natalie23
8 Replies
5. Shell Programming and Scripting
Hi anyone can help.how can i get all second column data in this log below??
x 799002577959.pdf, 25728 bytes, 51 tape blocks
x 800002357216.pdf, 25728 bytes, 51 tape blocks
x aadb090910.txt, 80424 bytes, 158 tape blocks
x tsese090909.txt, 13974 bytes, 28 tape blocks (4 Replies)
Discussion started by: netxus
4 Replies
6. UNIX for Dummies Questions & Answers
The unix admins in work have forced us to use a custom restricted shell on one of our servers.From what i can tell, this shell tags log messages (using /usr/bin/logger) with various info (date, hostname, user, connection info, etc...). It also forces the execution of commands through ksh.I've not... (2 Replies)
Discussion started by: Irrational
2 Replies
7. Shell Programming and Scripting
Hello everybody,
I need some help here to create a script to parse a log file. Here is a sample of the log file :
0x42258940 (Debug) Cache SUMMARY attrs now/668 min/668 max/668.
0x42258940 (Debug) RSVD SUMMARY reserved space max requested/128 MB accounted now/0 MB
0x42258940 (Debug)... (12 Replies)
Discussion started by: Samb95
12 Replies
8. Shell Programming and Scripting
I've been searching for an hour on how to parse a file like this:
10.200.5.83 - - "GET /portal/edits.js HTTP/1.1" 200 24324
10.200.5.83 - - "GET /portal/objects/PortalConfig.js HTTP/1.1" 200 12187
10.200.5.84 - - "GET /portal/objects/CommonDialog.js HTTP/1.1" 200 8283
10.200.5.84 - - "GET... (4 Replies)
Discussion started by: dba_frog
4 Replies
9. Shell Programming and Scripting
Hi,
I have a really simple question...I think. I want to be able to parse two or more files into one by reading the first record from each file into new file then go back to the first file and start reading the second record in from each file into new file and so on. I am new to using awk and am... (5 Replies)
Discussion started by: qray2011
5 Replies
10. Shell Programming and Scripting
Hi all,
We are having a sample log like
....
test.log:2015.03.17 06:16:24 >> ABC.generateMethod() MethodAException while processing Request! DataForm: Header --- dtd: template.dtd, titleName: berger, requestId: 1503170032131, documentName: invoice123, hostName: acme.net, userName: userABC... (10 Replies)
Discussion started by: tandrei
10 Replies
LEARN ABOUT LINUX
erl_lint
erl_lint(3erl) Erlang Module Definition erl_lint(3erl)
NAME
erl_lint - The Erlang Code Linter
DESCRIPTION
This module is used to check Erlang code for illegal syntax and other bugs. It also warns against coding practices which are not recom-
mended.
The errors detected include:
* redefined and undefined functions
* unbound and unsafe variables
* illegal record usage.
Warnings include:
* unused functions and imports
* unused variables
* variables imported into matches
* variables exported from if / case / receive
* variables shadowed in lambdas and list comprehensions.
Some of the warnings are optional, and can be turned on by giving the appropriate option, described below.
The functions in this module are invoked automatically by the Erlang compiler and there is no reason to invoke these functions separately
unless you have written your own Erlang compiler.
EXPORTS
module(AbsForms) -> {ok,Warnings} | {error,Errors,Warnings}
module(AbsForms, FileName) -> {ok,Warnings} | {error,Errors,Warnings}
module(AbsForms, FileName, CompileOptions) -> {ok,Warnings} | {error,Errors,Warnings}
Types AbsForms = [term()]
FileName = FileName2 = atom() | string()
Warnings = Errors = [{Filename2,[ErrorInfo]}]
ErrorInfo = see separate description below.
CompileOptions = [term()]
This function checks all the forms in a module for errors. It returns:
{ok,Warnings} :
There were no errors in the module.
{error,Errors,Warnings} :
There were errors in the module.
Since this module is of interest only to the maintainers of the compiler, and to avoid having the same description in two places to
avoid the usual maintenance nightmare, the elements of Options that control the warnings are only described in compile(3erl) .
The AbsForms of a module which comes from a file that is read through epp , the Erlang pre-processor, can come from many files. This
means that any references to errors must include the file name (see epp(3erl) , or parser erl_parse(3erl) ). The warnings and errors
returned have the following format:
[{FileName2,[ErrorInfo]}]
The errors and warnings are listed in the order in which they are encountered in the forms. This means that the errors from one file
may be split into different entries in the list of errors.
is_guard_test(Expr) -> bool()
Types Expr = term()
This function tests if Expr is a legal guard test. Expr is an Erlang term representing the abstract form for the expression.
erl_parse:parse_exprs(Tokens) can be used to generate a list of Expr .
format_error(ErrorDescriptor) -> Chars
Types ErrorDescriptor = errordesc()
Chars = [char() | Chars]
Takes an ErrorDescriptor and returns a string which describes the error or warning. This function is usually called implicitly when
processing an ErrorInfo structure (see below).
ERROR INFORMATION
The ErrorInfo mentioned above is the standard ErrorInfo structure which is returned from all IO modules. It has the following format:
{ErrorLine, Module, ErrorDescriptor}
A string which describes the error is obtained with the following call:
Module:format_error(ErrorDescriptor)
SEE ALSO
erl_parse(3erl) , epp(3erl)
Ericsson AB stdlib 1.17.3 erl_lint(3erl)