EnglishFrenchSpanish

OnWorks favicon

lwatch - Online in the Cloud

Run lwatch in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command lwatch that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


lwatch — syntax highlighting for syslog/syslog-ng file

SYNOPSIS


lwatch [-C filename] [--config filename] [-i filename] [--input filename] [-o
filename] [--output filename] [-sdOhv] [--show-unparsed] [--daemon] [--omit-rc]
[--help]

DESCRIPTION


Lwatch is a log colorizer. It reads syslog/syslog-ng data from named fifo or from stdin
and displays colored logs into stdout.

Lwatch is highly user-customizable. It reads configuration data from the file
/etc/lwatch/lwatch.conf or (if given) from the file provided with option -C

The way it works is simple. It reads a line from input (build-in default is
/var/lib/lwatch/syslog.fifo), splits it into four parts: date, hostname, service name
(with PID, if available) and real message. Each part has its own default color. You can
redefine them in configuration file. Default colors as the same as in loco(1) [see:
http://www.zjuul.net/~jules/loco/]. But lwatch is not only a static log colorizer. It is
something more. It can colorize your logs any way you wish. You are able to set a new
color for any part (date, host, service, message) using regexp based patterns.

COMMAND LINE OPTIONS


Lwatch accepts some command line options. Command line options have precedence over values
from configuration file.

-C filename

--config filename
read config from filename instead of /etc/lwatch/lwatch.conf

-i filename

--input filename
read data from named fifo filename instead of /var/lib/lwatch/syslog.fifo

-o filename

--output filename
write colored logs to filename instead stdout

-s

--show-unparsed
show unparsed lines like `last message repeated 5 times' or `--- MARK ---'

-d

--daemon run as daemon, detach from control terminal, move to background

-O

--omit-rc do not read values from config file

-h

--help show help about runtime option

-v

--version show version and copyright notices

RUNNING


Preferred way to run lwatch is to read syslog messages from named fifo or from standard
input.

If you use syslog you really want to read messages from named fifo. To do it, put a line:

*.* |/var/lib/lwatch/syslog.fifo

in your syslog.conf. Create appropriate fifo and restart syslog, then run lwatch. You can
also run lwatch before starting syslog. If you don't know how to create named fifo see
mknod(1) for details.

Remember:

· fifo must exist

· proper name must be put in /etc/lwatch/lwatch.conf or given with -i command line
option

In syslog-ng you can run lwatch directly from syslog, i.e.:

log { source(src); destination(console_all);};
destination console_all {program("/usr/bin/lwatch -i- -o/dev/tty11"); };

Lwatch does not support reading from regular files. If you really need this functionality
use following command:

tail -f /path/to/filename | /usr/bin/lwatch -i-
It could be subject to change in the future.

RESOURCES


· http://sf.net/projects/lwatch

· http://freshmeat.net/projects/lwatch/

COPYRIGHT


This program is free software; you can redistribute it and/or modify it under the terms of
the GNU General Public License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.

Regular expression support is provided by the PCRE library package, which is open source
software, written by Philip Hazel, and copyright by the University of Cambridge, England.
This library is available at: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/

NOTE FROM AUTHOR


I have written this tool for my own needs because perl tools, however flexible, eated a
lot of memory and CPU. I have found it useful and I share it with the Open Source
Community. But still, developing of this software is driven by my own needs. So, you could
expect next release in a year or two ;)

It would be really nice if you could find some time and spare it for rating this project
on FreshMeat (see RESOURCES). Comments are welcome too. I cannot promise that I will add
new features to lwatch immediately but any positive feedback will raise my motivation
level up.

Thank you in advance for your time.

Use lwatch online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Psi
    Psi
    Psi is cross-platform powerful XMPP
    client designed for experienced users.
    There are builds available for MS
    Windows, GNU/Linux and macOS.. Audience:
    End Users...
    Download Psi
  • 2
    Blobby Volley 2
    Blobby Volley 2
    Official continuation of the famous
    Blobby Volley 1.x arcade game..
    Audience: End Users/Desktop. User
    interface: OpenGL, SDL. Programming
    Language: C++, Lua. C...
    Download Blobby Volley 2
  • 3
    SuiteCRM
    SuiteCRM
    SuiteCRM is the award-winning Customer
    Relationship Management (CRM)
    application brought to you by authors
    and maintainers, SalesAgility. It is the
    world�s mos...
    Download SuiteCRM
  • 4
    Poweradmin
    Poweradmin
    Poweradmin is a web-based DNS
    administration tool for PowerDNS server.
    The interface has full support for most
    of the features of PowerDNS. It has full
    support...
    Download Poweradmin
  • 5
    Gin Web Framework
    Gin Web Framework
    Gin is an incredibly fast web framework
    written in Golang that can perform up to
    40 times faster, thanks to its
    martini-like API and custom version of
    httprout...
    Download Gin Web Framework
  • 6
    CEREUS LINUX
    CEREUS LINUX
    CEREUS LINUX basado en MX LINUX con
    varios entornos de escritorios. This is
    an application that can also be fetched
    from
    https://sourceforge.net/projects/cereu...
    Download CEREUS LINUX
  • More »

Linux commands

  • 1
    aa-clickquery
    aa-clickquery
    aa-clickquery - program for querying
    click-apparmor DESCRIPTION: This program
    is used to query click-apparmor for
    information. USAGE: aa-clickquery
    --click-fra...
    Run aa-clickquery
  • 2
    aa-exec-click
    aa-exec-click
    aa-exec-click - program for executing
    click packages under confinement
    DESCRIPTION: This program is used to
    execute click package under AppArmor
    confinement. I...
    Run aa-exec-click
  • 3
    cpio
    cpio
    cpio - copy files to and from archives ...
    Run cpio
  • 4
    cpipe
    cpipe
    cpipe - copy stdin to stdout while
    counting bytes and reporting progress ...
    Run cpipe
  • 5
    FvwmSave
    FvwmSave
    FvwmSave - the Fvwm desktop-layout
    saving module ...
    Run FvwmSave
  • 6
    FvwmSave1
    FvwmSave1
    FvwmSave - the FVWM desktop-layout
    saving module ...
    Run FvwmSave1
  • More »

Ad