I am developing a log parsing agent in perl to send windows Event logs to Zenoss Monitoring tool. Using Win32::EventLog i can able to get the Event messages but only one Eventype eg Application or System could able to parse at a time. Can you please help to how to open mutiple eventlogs at a time I need to get the total number of events combining all these event types. Below is my code which i tried
I have a shell script that will gzip/tar/archive application logs that are over 20 days old which works just fine, but I would like to convert to a Perl script. Problem is, I'm a beginner with Perl and all attempts so far have failed.
Basicaly I have a log dir /app/logs that contains several... (18 Replies)
Hello
I have a server Sun Fire X4250. Few days ago I take a look to ILOM -> System Monitoring -> log events.
I saw some lines that I don't understand, for example:
5800 Chassis Action major Oct 30 23:58:35 2009 Hot insertion of /SYS/DBP/HDD12
5799 Chassis ... (3 Replies)
Hello Smart People!
I have a perl script that will import xml data into an access db.
I would like to modify it so it will automatcially parse through all xml files in the folder. I swa a post but couldnt get it working. her is what my scrip looks like, i only list the top if you need more... (3 Replies)
I can't decide if I should use AWK or PERL after pouring over these forums for hours today I decided I'd post something and see if I couldn't get some advice.
I've got a text file full of hundreds of events in this format:
Record Number : 1
Records in Seq : ... (3 Replies)
I have this script to parse some logs:
#!/bin/bash
id=$1
shift
sed "/(id=$id)/,/^$/!d" "$@"
Usage: ./script.sh 1234 logfile
The logs have an empty line before the logged events/timestamps -- most of the time. And this is my issue, since when there is no empty line, it will catch things... (4 Replies)
Hi all,
. I am developing a log monitoring solution in perl for Windows I am using the CPAN module Win32 ::EventLog (0.076) version for getting the events from windows. The problem which I am facing now is all the Windows 2008 machines are upgraded with Service pack2 from then I couldn’t able... (2 Replies)
I am new to Shell scripting and below is my requirement.
I need to search some specific word e.g. "exception" or "transaction" from log file.
We have multiple env e.g. Level1 , Level2 etc and each env have Multiple boxes e.g. For Level 1 env we have "test11.test.com" , "test12.test.com".
Each... (1 Reply)
Hi All,
I need to write a bash script that will parse some perforce log files, the log files will contain user login information, the script would need to pare the log, and check who logs in, and if the user is a superadmin, then the script will check the ip address to see which server the... (4 Replies)
Appreciate help for the below issue.
Im using below code.....I dont want to attach the logs when I ran the perl twice...I just want to take backup with today date and generate new logs...What I need to do for the below scirpt..............
1)if logs exist it should move the logs with extention... (1 Reply)
Discussion started by: Sanjeev G
1 Replies
LEARN ABOUT HPUX
emsweb
emsweb(1M)emsweb(1M)NAME
emsweb - starts the HP-UX Event Monitoring Service tool (a Web interface)
SYNOPSIS
[ ] [ ]
DESCRIPTION
The HP-UX Event Monitoring Service tool ( ) is used to monitor resource instances and manages requests created on these instances.
The HP-UX Event Monitoring Service tool provides both Web-based and terminal user interface. The Web-based interface is launched through
the HP System Management Homepage.
Superuser privileges are required to access the HP-UX Event Monitoring Service tool. A user who does not have superuser privileges has
read-only access to the requests area in the HP-UX Event Monitoring Service tool and cannot modify requests.
An attempt will be made to connect to a Mozilla/Netscape Web browser running on the X server defined by the DISPLAY environment variable.
If a running Mozilla/Netscape client is found, it will be used, otherwise a new Mozilla/Netscape session will be initiated. This will only
happen if the Mozilla/Netscape process is running in the same system as that referenced by the DISPLAY variable, unless the -F option is
used.
Note: By default, the HP-UX Event Monitoring Service tool (emsweb) invokes the Mozilla Web browser. If you want to support any other
browser (Netscape), set the $BROWSER environment variable as shown below:
The terminal user interface is invoked if any of the following conditions are true:
o The command is invoked with the option.
o The environment variable is not set.
The Web-based interface is launched if all the following conditions are true:
o The command is invoked with option.
o The environment variable is set.
o The command is available on the system.
If the Web-based interface cannot be launched, invokes the terminal user interface.
Options
recognizes the following options:
Forces a client browser to be used in less secure ways.
The option forces the client browser to be used or started, even when the X-traffic between the X-server and the Mozilla
browser is not secure.
Use this option only when you are sure the network traffic between the host where Mozilla is running and the host in the
DISPLAY variable is secure.
If cannot start the Web browser, the terminal interface is started.
When the HP-UX Event Monitoring Service Web interface is invoked by SAM, the option is used.
If a privileged user (root) executes the
command with the option, a temporary login bypass key is generated. The bypass key enables the user to access the Web
interface without having to provide login information again.
When the HP-UX Event Monitoring Service Web interface is invoked by SAM, the option is used.
Opens the terminal interface for managing requests created to monitor resource instances regardless of the current setting of the
environment variable.
You can also start the HP-UX Event Monitoring Service tool using one of the following methods:
o Invoke and select the Event Monitoring Service (character mode) functional area to launch the terminal user interface and the
Event Monitoring Service (Web-based Interface) to launch the Web-based tool
o Invoke the HP-UX Event Monitoring Service tool Web interface by typing the URL in the address bar of your browser, where hostname
is the name of the server
o Launch the HP-UX Systems Insight Manager on the server and select the Event Monitoring Service tool from the Configure -> HP-UX
Configuration menu
Online Help
After the HP-UX Event Monitoring Service tool is started, the online help provides details on how to use the tool.
RETURN VALUES
Upon completion, emsweb returns one of the following values:
o 0 Successful
o 1 An error occurred
AUTHOR
was developed by Hewlett-Packard.
SEE ALSO emscli(1M), resls(1), resdata(1)emsweb(1M)