Try the following, and you will see that while you are editing the file, syslog continues to update the log file.
- go to the end of the file in vi and see what is there.
- wait a few minutes to let something loggable happen.
- in a separate window, do a tail on the log file.
- the results will be different, because syslog continues to update the file.
Here is another demo:
When you saved the log file from within vi, you wiped out the changes that syslog had made. Normally, not a good idea to make changes to syslog log file, unless some over-riding benefit.
I run a decent size Solaris 8 network where we use host files and no DNS servers. I have a master host file to push out to all the machines (also would like to do system and services too) but, the only way I've ever been able to do it is buy telneting into the machine and ftping the file into place... (10 Replies)
Hi,
I am parsing a very big file say 10 MB. It 'll take more than an hour ..I want to know the progress say in % .Is there any way to do that???
or
(Is there any way to know which line of the file I am in ) (2 Replies)
Hi, people.
I need some help with this:
i have this file " PROVEDP_???_yyyymmdd " , and i want to rename to this
" IN_PROV_yyyy???.dat " .
The " ??? " is the Month , but the file could be created on April, but the name coulb be March, for example.So i need to grab the 3 caracters
... (2 Replies)
Hi..
Can Anyone out there help me? I need to write a script to convert a file in EDCIDC format to CSV
The files will be transfered through sftp to the box. Is there a way to check the file has finished being transfered or still transfering. so that my conversion task will be performed after... (3 Replies)
Hi All
I have a script which drops a mail with the changes done on crontab file for every 1 hour
Can anyone pls tell me how can I modify the script so that it should display the terminal from which the crontab file hasbeen modified.
Quick responce much appriciated !!
Many thanks in... (7 Replies)
how to use the filehandle stored in a variable without knowing its file association i.e. the filename
code
my $logFH = $connObj->get('logFH');
infoPrint("Variable is of type IO \n") if(UNIVERSAL::isa($logFH, 'IO'));
infoPrint("$logFH\n");
output
== INFO :: Variable is of type... (0 Replies)
Actually i did modification in a file on server by mistake, now its showing current time stamp, is there any way to set the files modified date and stamp to last modifies time.
Please advice here.Thanks in advance.:b: (7 Replies)
So I need some help with this. Pardon me if I'm posting in the wrong forum, after some googling for my answer and finding nothing I found this forum. It seemed appropriate for what I was seeking. I just didnt find a forum that concerned the use of GDB. I'm learning to use the C language and GDB.... (2 Replies)
Hi,
I have a Solaris 10 box where password aging is not functioning properly. Using the passwd command with the -l or -u options causes the lastchg field in the /etc/shadow file to be modified. Therefore, if a user's password is set to expire in 90 days and they are 1 day away, all they have... (4 Replies)
This question could be specific to the site subdivx.com In the past, I've been able to download a file following location using cURL but there is something about subdivx.com that's different and can't figure out how to get it to work.
I tried the following directly in the terminal with no... (5 Replies)
Discussion started by: MoonD
5 Replies
LEARN ABOUT DEBIAN
syslog2dlf
SYSLOG2DLF.IN(1) LogReport's Lire Documentation SYSLOG2DLF.IN(1)NAME
syslog2dlf - convert syslog log files to DLF
SYNOPSIS
syslog2dlf
DESCRIPTION
This script uses the Lire::Syslog module to create a DLF representation of the syslog log files. It can process all the syslog log formats
supported by that module.
EXAMPLES
To process a log as produced by syslog:
$ syslog2dlf < syslog.log
syslog2dlf will be rarely used on its own, but is more likely called by lr_log2report:
$ lr_log2report syslog < /var/log/syslog.log
SEE ALSO Lire::Syslog(3pm)VERSION
$Id: syslog2dlf.in,v 1.6 2006/07/23 13:16:36 vanbaal Exp $
AUTHOR
Francis J. Lacoste <flacoste@logreport.org>
COPYRIGHT
Copyright (C) 2002 Stichting LogReport Foundation LogReport@LogReport.org
This program is part of Lire.
Lire 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.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with
http://www.gnu.org/copyleft/gpl.html.
Lire 2.1.1 2006-07-23 SYSLOG2DLF.IN(1)