Then you can open the log file and type in the end
and then you just need to see the line number of the last Opened log file suppose its line number is 4 and the last line number is 50 then you just need to type on command line.
Hi all,
I need to pull the (last section) from the header to the end of file. This logfile will have many sections appended, but I only need to capture the last one and email it to someone. Any ideas? Thanks Kathy
Example Logfile:
=============
= BOX : SAPCFI
= JOB : SAPCFI
=... (9 Replies)
Discussion started by: kburrows
9 Replies
3. Post Here to Contact Site Administrators and Moderators
Hi
Just a thought if it already hasn't been suggested.
While looking at the forums I thought it might be a good idea under somewhere like 'special forums' add a section called 'projects'. I think this would be good for people to be able to post projects they have created.
For example I am... (3 Replies)
Hello,
I have written a script that removes duplicates within a file and places them in another report.
File:
ABC1 012345 header
ABC2 7890-000
ABC3 012345 Content Header
ABC5 593.0000 587.4800
ABC5 593.5000 587.6580
ABC5 593.5000 587.6580
ABC1 67890 header
ABC2 1234-0001
ABC3... (2 Replies)
I have a list of Servers in no particular order as follows:
virtualMachines="IIBSBS IIBVICDMS01 IIBVICMA01"And I am generating some output from a pre-existing script that gives me the following (this is a sample output selection).
9/17/2010 8:00:05 PM: Normal backup using VDRBACKUPS... (2 Replies)
You are given a 1 year logfile with each line starting with a date in the form “YYYY-MM-DD”. How would you extract logs from the 4th day of each month and put them into a new file (3 Replies)
I have searched in a variety of ways in a variety of places but have come up empty.
I would like to prepend a portion of a section header to each following line until the next section header. I have been using sed for most things up until now but I'd go for a solution in just about anything--... (7 Replies)
I have a data file like below:
2011 0701 2015 21.2 L 37.692 46.202 18.0 Teh 4 0.3 2.1 LTeh 1
GAP=233 E
Iranian Seismological Center, Institute of Geophysics, University of Tehran 6
STAT SP IPHASW D HRMM SECON CODA AMPLIT PERI AZIMU VELO SNR AR TRES W DIS CAZ7
TBZ SN EPg 0 2015 31.19 -0.3... (3 Replies)
Bonjour,
I've wrote a script to monitor a logfile in realtime. It is working almost perfeclty except for two things.
The script use the following technique :
tail -fn0 $logfile | \
while read line ; do
... some stuff
done
First one, I'd like a way to end the monitoring script if a... (3 Replies)
Hello,
I have a log file that has several sections "BEGIN JOB, End of job" like in the following example:
19/06/12 - 16:00:57 (27787398-449294): BEGIN JOB j1(27787398-449294) JOB1
19/06/12 - 16:00:57 (27787398-449294): DIGIT: 0
number of present logs : 1
19/06/12 - 16:00:57... (4 Replies)
Discussion started by: mvalonso
4 Replies
LEARN ABOUT DEBIAN
munin-update
MUNIN-UPDATE(8) Munin Documentation MUNIN-UPDATE(8)NAME
munin-update - A program to gather data from machines running munin-node
SYNOPSIS
munin-update [options]
Options:
--config_file=<file> Use <file> as configuration file.
--[no]debug Enable [or disable] debug messages. [--nodebug]
--[no]fork Query hosts in parallell (--fork), or
sequentially (--nofork). [--fork]
--host <host> Limit graphed hosts to <host>. Multiple --host
options may be supplied.
--service <service> Limit graphed services to <service>. Multiple
--service options may be supplied.
--timeout=<seconds> TCP timeout when talking to clients. [$timeout]
--help View this message.
--version View version information.
OPTIONS
--config_file=<file>
Use <file> as the configuration file. [/etc/munin/munin.conf]
--[no]debug
If set, log debug messages. [--nodebug]
--[no]fork
If set, will fork off one process for each host. [--fork]
--host <host>
Limit fetched data to those from <host<gt>. Multiple --host options may be supplied. [unset]
--service <service>
Limit fetched data to those of <service>. Multiple --service options may be supplied. [unset]
--timeout <seconds>
Set the network timeout to <seconds>. [180]
--help
Print the help message then exit.
--version
Print version information then exit.
DESCRIPTION
Munin-update is a part of the package Munin, which is used in combination with Munin's node. Munin is a group of programs to gather data
from Munin's nodes, graph them, create html-pages, and optionally warn Nagios about any off-limit values.
Munin-update does the gathering. It is usually only used from within munin-cron.
It contacts each host's munin-node in turn, gathers data from it, and stores them in .rrd-files. If necessary, it will create the rrd-files
and the directories to store them in.
FILES
/etc/munin/munin.conf
/var/lib/munin/*
/var/log/munin/munin-update
/var/run/munin/*
BUGS
For a list of bugs concerning munin-update, see FI. ticket report"
Please report bugs in the bug tracker at http://munin-monitoring.org/ <http://munin-monitoring.org/>.
AUTHORS
The Munin Team. FIX
COPYRIGHT
Copyright AX 2002-2009 Jimmy Olsen, Audun Ytterdal, Tore Andersson, Kjell-Magne A~Xierud, Linpro AS, Redpill Linpro AS
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program is released under the GNU General Public License.
2.0.6-4+deb7u2 2013-11-12 MUNIN-UPDATE(8)