Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How can i parse my Unix log files?? Post 302500823 by DGPickett on Tuesday 1st of March 2011 03:54:22 PM
Old 03-01-2011
I guess it is pretty trivial to get the syslog() elements. Are you parsing the application message content, or just the syslog headings?

Google brings up several, some in PERL:

http://www.google.com/search?q=syslog+file+parse
This User Gave Thanks to DGPickett For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

shell scripts that parse log files

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

Parse Unix Mail

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

Unix Script to parse a CSV

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

how to parse this file in unix

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

perl parse log

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

unix log files

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

Help to create a script to parse log files

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

parse log with sed

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

Parse 2 or more files into one.

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

Parse log files

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
syslog.h(3HEAD) 						      Headers							   syslog.h(3HEAD)

NAME
syslog.h, syslog - definitions for system error logging SYNOPSIS
#include <syslog.h> DESCRIPTION
The <syslog.h> header defines the following symbolic constants, zero or more of which can be OR'ed together to form the logopt option of openlog(): LOG_PID Log the process ID with each message. LOG_CONS Log to the system console on error. LOG_NDELAY Connect to syslog daemon immediately. LOG_ODELAY Delay open until syslog() is called. LOG_NOWAIT Do not wait for child processes. The following symbolic constants are defined as possible values of the facility argument to openlog(): LOG_KERN reserved for message generated by the system LOG_USER message generated by a process LOG_MAIL reserved for message generated by mail system LOG_NEWS reserved for message generated by news system LOG_UUCP reserved for message generated by UUCP system LOG_DAEMON reserved for message generated by system daemon LOG_AUTH reserved for message generated by authorization daemon LOG_CRON reserved for message generated by clock daemon LOG_LPR reserved for message generated by printer system LOG_LOCAL0 reserved for local use LOG_LOCAL1 reserved for local use LOG_LOCAL2 reserved for local use LOG_LOCAL3 reserved for local use LOG_LOCAL4 reserved for local use LOG_LOCAL5 reserved for local use LOG_LOCAL6 reserved for local use LOG_LOCAL7 reserved for local use The following is declared as a macro for constructing the maskpri argument to setlogmask(). The following macro expands to an expression of type int when the argument pri is an expre ssion of type int: LOG_MASK(pri) a mask for priority pri The following constants are defined as possible values for the priority argument of syslog(): LOG_EMERG A panic condition was reported to all processes. LOG_ALERT A condition that should be corrected immediately. LOG_CRIT A critical condition. LOG_ERR An error message. LOG_WARNING A warning message. LOG_NOTICE A condition requiring special handling. LOG_INFO A general information message. LOG_DEBUG A message useful for debugging programs. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ SEE ALSO
syslog(3C), attributes(5), standards(5) SunOS 5.10 10 Sep 2003 syslog.h(3HEAD)
All times are GMT -4. The time now is 07:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy