[Top] | [Contents] | [Index] | [ ? ] |
The Xlogmaster is a program to monitor system activity (logfiles) & hardware status (devices) and take actions if necessary. This is edition 0.8, for the Xlogmaster version 1.6.0
1. Copying Your rights and freedoms.
2. Introduction into the Xlogmaster
3. How to use the Xlogmaster
4. Internal workings of the Xlogmaster Internal Xlogmaster workings
5. Configuration Files The file formats used for configuration
6. Frequently Answered Questions
Concept Index
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Hint for people that are too impatient to read the full documentation (as I usually am):
RIGHT MOUSE BUTTON IN TEXT WINDOW BRINGS UP MENU MIDDLE MOUSE BUTTON IN TEXT WINDOW HIDES/SHOWS BUTTONS
The first version of the Xlogmaster has been written in 1996, using the
XVIEW toolkit. I didn't like that toolkit too much so it all ended up in
a pretty messy piece of code that was only compile-time configurable and
not very stable -- I did use it for two years, though, always telling
myself "I'll be writing a clean version soon".
June 1998 I finally managed to actually keep this promise and completely
rewrote the Xlogmaster for the GTK+ toolkit (see
`http://www.gtk.org/'). First I only intended to write it for
my private usage but when I got a lot of feedback from
people around the world I decided to make the Xlogmaster a real and
regular project. With version 1.4.0 the Xlogmaster then became an
official GNU program.
The Xlogmaster will allow you to monitor all your logfiles and all
devices that allow being read by cat
. Furthermore it supplies
several filters that will do things from raising/hiding lines in the
text display to starting programs to send you a paging message about a
possible security breach.
If used wisely the Xlogmaster can make it very easy to keep track of
everything that happens on your system and it can increase your systems
security by quite a lot. This program has been written and published in
the hope that it will prove useful to you but I do
not guarantee for anything but my best will.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The Xlogmaster runtime usage is basically pretty simple. There is a button on the side for each entry and as you might have guessed clicking on the button will make the Xlogmaster display that entry. There are more functions that are less obvious:
|
these do only work in the text window, though. Apart from that you can use the cursor-keys to move the standard selection around and activate it by hitting RET. The configuration should be self explanatory, if you keep the mouse pointer over an object a small help window will pop up.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The two concepts you should definitely know about within the Xlogmaster are
4.1 Modes Description of the main modes 4.2 Filters Information about the filters 4.3 Audio Support Audio Support for Class 1 filters
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The Xlogmaster knows basically two modes of operation, the tail mode and the cat mode. Both modes are named after the programs they emulate.
For both modes you can give an interval -- this is the time (in 1/10 seconds) between two calls of the interrupt function. This interval directly determines how often the Xlogmaster checks for changes in the logfile (tail mode) or how often it replaces the data in the buffer with the current data (cat mode).
4.1.1 Tail mode Details about the Tail mode 4.1.2 Cat mode Details about the Cat mode 4.1.3 Run mode Details about the Run mode
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
tail -f
on a
logfile. It will read a file and then keep on reading whatever gets
appended to it over time. The Xlogmaster should also be able to catch
logfile rotations so you don't have to reopen it every time the logfiles
have been rotated.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
cat <filename>
so it reads
the whole file every time. This is necessary for reading things like
the `/proc' devices.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
If you monitor the output of
|
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The Xlogmaster has two classes of filters, enumerated Class 0 and
Class 1 filters. The main difference is that the Class 0
filters are filters being applied at display time while the
Class 1 filters are being applied at read-time.
Matching for the filters is always done per line -- patterns
that would match more than one line will never match anything !
The following filters are known:
4.2.1 Class 0 filters Details about the Class 0 filters 4.2.2 Class 1 filters Details about the Class 1 filters
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The filters are (from highest to lowest priority):
4.2.1.1 Hide Functionality of the Hide filter 4.2.1.2 Raise Functionality of the Raise filter 4.2.1.3 Lower Functionality of the Lower filter
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The Class 1 filters will be triggered for each line they can be applied on, but each filter only once (even if the string would theoretically match multiple times). They do not exclude each other, though. Each filter that can be applied will be applied !
4.2.2.1 Alert Functionality of the Alert filter 4.2.2.2 Execute Functionality of the Execute filter 4.2.2.3 Notice Functionality of the Notice filter 4.2.2.4 Uniconify Functionality of the Uniconify filter
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The purpose of this filter is to inform you of events that are of interest right now but become less important over time -- the fading back prevents a situation that you come back to your machine and find all the buttons in alert color additionally you get an impression of how recent the alert was if you catch it while fading back.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This filter allows you to start programs and/or scripts when a certain string shows up. This is potentially the most powerful of the filters. Your program gets it's information via environment variables or via command line. The following variables / environment variables are known:
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This filter has been implemented for events that are of extreme importance regardless of when they have been triggered. A notice box is being popped up at the current mouse position. This notice box contains a list with the time and date of the triggering action as well as the name of the entry that triggered it. If you click on an entry in this list you'll see the triggering line in the text field below the list.
If you set `--notice-follows-mouse' at startup the notice box will move to the current mouse position every time something new has been added.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
For people who like to keep the Xlogmaster iconifed because of space shortage. If you set this filter the Xlogmaster will uniconify automatically when a matching line has been seen.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The Xlogmaster has Open Sound System (OSS) support. For every
Class 1 filter type (the only exception being execute) you can
define a sound that gets played whenever this filter type has been
triggered.
The requirements that the sounds have to meet are simple: They need to
be playable via cat <soundfile> > /dev/dsp
. This usually means
they should be about 8KHz and in a standard format (`Wave',
`ULaw' or `SUN audio' for instance).
Please check out the command line options for setting of the
sound files. If nothing is given the Xlogmaster will use the files in
`$prefix/etc/sound'. The standard is to play back the files
called `notice', `alert' or `uniconify' -- I'd recommend
to make then symbolic links instead of actually copying the files there.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
5.1 Configfile Introduction A short overview over the used formats 5.2 Xlogmaster configuration file location Locations searched for configuration files 5.3 Xlogmaster configuration file format The main configuration file for all entries
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
There are two different file types used for configuration by the Xlogmaster. One is the GTK+ special style file, the gtkrc file I do not want to say too much about that one because it is documented with the GTK+ toolkit (See Info file `GTK', node `Resource Files') and it's format is actually pretty simple. A look at the sample files distributed along with the Xlogmaster should already solve all questions, so feel free to check them out and try around with them. They allow you to control the look of the Xlogmaster any way you want and it's definitely worth risking a look. The Xlogmaster internal configuration file is pure ASCII and can hence be processed easily with any text editor although you will most probably not need to do so because the customization menu is much nicer.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Xlogmaster looks for a configuration file in the following sequence, using the first found. If no configuration file is found, a set of internal defaults is used.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The format is line oriented, this means every entry needs to use exactly one line. Entries that do not follow this policy will be ignored.
There are two kinds of entries for the configuration file, the first is
a line that contains the mode of the entry along with it's name
and some more information. The format for this kind of entry is
`MODE{FILENAME,INTERVAL[/DELAY],BUTTONTEXT,HELPTEXT}'
where the fields are the same as in the customization menu:
TAIL{/var/log/messages,3,System Messages,/var/log/messages} RAISE{greve} HIDE{accesswatch} HIDE{faxqclean} HIDE{uucpcontrol} HIDE{touch.*/tmp/newsrun} TAIL{/var/log/warn,3,Warning Messages,/var/log/warn} TAIL{/var/adm/kernel,3,Kernel Messages,/var/adm/kernel} TAIL{/var/adm/debug,3,Debugging Messages,/var/adm/debug} RAISE,NOTICE{accesswatch} HIDE{newsrun} EXECUTE,CASE_SENSITIVE{uucpcontrol}{xlm-mail greve} RUN{w,3/10,Who's Online,...tell me who's online...} ALERT{root} |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This is a list of frequently asked questions (FAQ's) about the Xlogmaster with answers.
If you know the answer of a question is in the FAQ list, please reply to the question by e-mail instead of posting. Help reduce noise!
Please suggest new questions, answers, wording changes, deletions, etc. The most helpful form for suggestions is a context diff (i.e. the output of `diff -c'). Include `FAQ' in the subject of messages sent to me about the FAQ list.
Please do not send questions to me just because you do not want to disturb a lot of people and you think I would know the answer. I do not have time to answer questions individually and keep up with everything else I have to get done. Questions to me that have been answered before slow down development and that is bad for everyone.
6.1 Introductory Questions 6.2 Compiling the Xlogmaster
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The Xlogmaster is a GTK+ (see the GIMP toolkit page under
http://www.gimp.org/ for more information) based program that helps you
to monitor all kinds of system activity. It allows monitoring and
background surveillance of all logfiles and devices that allow being
read by cat
like the `/proc' devices. You can configure the
Xlogmaster graphically to take almost any action you can think of upon
certain events and it can certainly help you keeping track of everything
and increasing system security.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The current version is 1.6.0, yet to be released.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The source can be found via anonymous FTP at `ftp.gnu.org:/pub/gnu/'. ftp.gnu.org:/pub/gnu/
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
If you installed everything correctly the easiest ways are probably
xlogmaster --help
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This is a brief and shallow outline. For more details, consult the 'ed' man page (man ed), or the GNU regex info file (if you have it installed).
Regular expressions are a means of specifying a text pattern. Xlogmaster uses them in its filter specifications, where lines containing the pattern activate the filter.
There are however a number of characters and character sequences which have a special meaning - which may change on the context.
At their simplist, regular expressions are just text strings, for example:
Slightly more complicated expressions, and their effects, are:
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
6.2.1 Normal installation 6.2.2 Make doesn't seem to understand the Makefiles
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Normal installation is done by unpacking the archive and then entering
it. ./configure ; make ; make install
should do everything
then. The default is to install it into the `/usr/local'
structure. If you want to change that and for other configuration
options, please see ./configure --help
.
Note. If you are using a FreeBSD system and want to compile from source, consider using the port `/usr/ports/sysutils/xlogmaster'. If you just want to install an executable version, consider using the package.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This can happen on some systems (especially SunOS or old Solaris ones) --
the problem is easily fixed by using gmake
instead of make
.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Jump to: | A C E F H I L M N O R T U W X Y |
---|
Jump to: | A C E F H I L M N O R T U W X Y |
---|
[Top] | [Contents] | [Index] | [ ? ] |
1. Copying
2. Introduction into the Xlogmaster
3. How to use the Xlogmaster
4. Internal workings of the Xlogmaster
4.1 Modes5. Configuration Files
4.1.1 Tail mode4.2 Filters
4.1.2 Cat mode
4.1.3 Run mode
4.2.1 Class 0 filters4.3 Audio Support
4.2.1.1 Hide4.2.2 Class 1 filters
4.2.1.2 Raise
4.2.1.3 Lower
4.2.2.1 Alert
4.2.2.2 Execute
4.2.2.3 Notice
4.2.2.4 Uniconify
5.1 Configfile Introduction6. Frequently Answered Questions
5.2 Xlogmaster configuration file location
5.3 Xlogmaster configuration file format
6.1 Introductory QuestionsConcept Index
6.1.1 What is the Xlogmaster ?6.2 Compiling the Xlogmaster
6.1.2 What is the current version of the Xlogmaster ?
6.1.3 Where can I find it?
6.1.4 Where can I get help for using the Xlogmaster ?
6.1.5 Regular Expressions
6.2.1 Normal installation
6.2.2 Make doesn't seem to understand the Makefiles
[Top] | [Contents] | [Index] | [ ? ] |
1. Copying
2. Introduction into the Xlogmaster
3. How to use the Xlogmaster
4. Internal workings of the Xlogmaster
5. Configuration Files
6. Frequently Answered Questions
Concept Index
[Top] | [Contents] | [Index] | [ ? ] |
Button | Name | Go to | From 1.2.3 go to |
---|---|---|---|
[ < ] | Back | previous section in reading order | 1.2.2 |
[ > ] | Forward | next section in reading order | 1.2.4 |
[ << ] | FastBack | previous or up-and-previous section | 1.1 |
[ Up ] | Up | up section | 1.2 |
[ >> ] | FastForward | next or up-and-next section | 1.3 |
[Top] | Top | cover (top) of document | |
[Contents] | Contents | table of contents | |
[Index] | Index | concept index | |
[ ? ] | About | this page |