Output the last part of files.

learn more… | top users | synonyms

0
votes
0answers
21 views

Coloring multitail alternative that scrolls using the terminal client? [closed]

multitail is great tool as it can be configured to highlight specific strings but because it is a TUI application you lose the ability to scroll using your terminal. You have to press b and use the ...
1
vote
3answers
42 views

Adding tail behaviour where enter adds blank lines to less

I love less, which I can use to follow logs with the +F flag (or the ShiftF hotkey), search forwards and backwards, and generally move freely through the document. But there is one thing missing in ...
1
vote
1answer
48 views

Can I tail an http resource?

Is there a way to tail a resource such as http://someserver.com/logs/server.log ? This is what I would do for a local file. tail -F /var/logs/somefile.log I would like something similar to that ...
0
votes
2answers
60 views

tail-pipe-awk script, fine on Centos but weird on Ubuntu

I wrote a script on CentOS and now I'm trying to run it on Ubuntu and it is behaving unexpectedly. Here's something like the script, which I run under bash: sudo tail -F ...
2
votes
0answers
50 views

How to get “tail -f” working on a file located on a Windows share

I'm using a Mac and I have mounted a Windows network disk in my file system using "Connect to Server" in the Finder. In the terminal when i do tail -f on a log file located on said network disk, tail ...
0
votes
2answers
121 views

How to TAIL & EGREP for a specified time range in a BASH script

The subject mostly says it all. I am in charge of a few web servers running Ubuntu 12.04 running Apache2 & I would like to setup APC. Now I understand APC can hit segmentation fault issues when ...
2
votes
3answers
66 views

Detect file update from modification time

Is there a way to see how often a file is being updated? I mean I need to see if the modification time of a file is updated in a dynamic way (same as tail shows if the file is updated in a dynamic ...
1
vote
1answer
252 views

PHP Script To Monitor Apache Access Log Files using TAIL

I wrote a PHP script to live monitor the apache access_log file. I am using the following commands; $path_to_tail = '/usr/bin/tail'; $path_to_access_file = '/var/log/httpd/access_log'; ...
1
vote
2answers
52 views

Grabbing the directory path in a message like “You have new mail in /var/spool/mail/root”

So I often get messages such as You have new mail in /var/spool/mail/root and end up typing/copy-pasting out: tail /var/spool/mail/root, which is a bit cumbersome. Is there a simple command that ...
0
votes
2answers
110 views

How to combine a real-time clock with tail -F

I always run tail -F to keep an eye on a log in a terminal window. The log has a UTC date at the beginning of each entry: [08-Jan-2013 16:24:22] Yo! When I glance at my log window I need to know ...
2
votes
2answers
223 views

How to watch for count of new lines in tail

I want to do something like this: watch tail -f | wc -l #=> 43 #=> 56 #=> 61 #=> 44 #=> ... It counts new lines of tail each second / Linux, CentOs To be more clear. I have got ...
0
votes
1answer
303 views

tail -f : `tail: logfile.log: file truncated`

I was watching a log file (logfile.log) with tail -f, and after a few minutes, the following message was written to the file: tail: logfile.log: file truncated I've never seen that before and I'm ...
2
votes
3answers
106 views

Search for a log pattern continuously

I am preparing a log watch dog but my concern is tailing always would blow up in some point. Thus, My concern is to monitor the log file always and if a pattern match occurs. Issue some commands on ...
2
votes
2answers
298 views

Countinuous processing of tail -f output [closed]

I have a file where numbers are continuously appended: 1 2 3 4 I want to calculate their mean, also continuously, i.e.: 1 1.5 2 2,5 I don't want to check file periodically, I want to it in the ...
0
votes
3answers
268 views

Live statistics from a log file

I've got nginx running as a load balancer in front of several web servers. I'd like to be able to see live statistics with response time (maybe a histogram of the last 10 seconds?) I think Varnish ...
-1
votes
1answer
207 views

Windows Small Business Server 2011 64 Bit - where to find tail [closed]

I am looking for a tail alternative which can be installed on a Windows Small Business Server 2011 64 Bit (from this old thread)? I tried mTail, LogViewer and both failed. Do you have any suggestion ...
2
votes
2answers
596 views

tail -f without the tail?

Is there a command in Solaris to read a file, and when it gets to the end to stream the way tail does? I need to read the file from the start, and it is a binary file. Information on Solaris and ...
0
votes
2answers
237 views

tool to analyse/grep log files

Is there any web based GUIs to analyse or in realtime filter/grep log files from apache? log files that are access logs or error logs or postfix logs etc. Edit: I don't mean traffic analysis. Much ...
1
vote
3answers
114 views

Saving the out of tail

The following does not work... tail -f /var/log/mysql/general.log | grep Connect > /home/myfile.txt If I remove the "-f" switch then I am able to save the output to a text file, but it does not ...
1
vote
2answers
139 views

find files and search for within tail

The following is working as expected. find /opt/ -name "somefile.out" -exec grep 'Connection refused' {} \; | more But if I want to search only in the tail of the found files, I can not add tail or ...
2
votes
2answers
307 views

“tail -f” style web application

I've been searching for a small but functional PHP script or similar that I can expose via apache. Basically I'd like what "tail -f /var/log/something" does, but visible via a web browser. I'm finding ...
19
votes
4answers
2k views

In tail -f, how do I filter out stuff that has certain keywords?

I want to tail -f my logs. However, I want to filter out everything that has the words: "ELB", "Pingdom", "Health"
0
votes
3answers
337 views

how to “batch” output of “tail -F” or output all data in a stream every X seconds?

I am trying to monitor a log file in real-time. Say I issue a command such as: tail -F mysystem.log|grep -i error|mail ... This is supposed to monitor my log file, every time it sees an error, email ...
0
votes
4answers
975 views

Linux: Can I monitor all http connections to my site live? like tail -f /file/log.log only for http connections?

I want to monitor whether or not people are accessing my site live. I want to see the http connections made to my site in terminal/ssh. Something like a tail -f /file/log.log function but I believe ...
2
votes
3answers
117 views

issues to inspect a long text file in unix

If I run sudo pico /var/log/lighttpd/website/error.log I get a very long file, and I cannot see last lines. If I run: sudo tail -f /var/log/lighttpd/website/error.log | awk '{print $1 "--" $2}' ...
0
votes
1answer
371 views

NFS server and delay in using tail -f?

We have two Solaris servers, let's call them Alice and Bob. We also have a Solaris NFS server used by both of them, call it Charlie. Alice writes to a text logfile on the NFS server, which is then ...
6
votes
4answers
995 views

Is is possible to filter the output of tail?

I'd like to tail a file but only output lines that have a certain string in them. Is this possible?
1
vote
4answers
767 views

`tail -f` sometimes stops updating - and the file hasn't moved

I have noticed recently that sometimes tail -f <logfile> will stop updating to the screen. Doing a Ctrl>-C and restarting the tail works fine, though. And I checked to make sure the logfile ...
1
vote
0answers
271 views

multitail/ssh leaves processes hanging around after exit

I'm using multitail via SSH to filter log output on a number of servers like so: multitail -L "ssh foo.bar.com tail -n 0 -q -F /var/log/out.log | grep match" This works great, however when ...
0
votes
1answer
68 views

Seeking past end of file causes Apache hang, and it never restarts

I've actually solved my problem with a better script, but I'm still left wondering why Apache2 hung completely - this is an out-of-the-box ISPCONFIG 3.03 install, everything bang up to date, running ...
1
vote
2answers
628 views

Best tools for “ssh tail -f” style log file monitoring and analysis

I'm looking for a tool to monitor custom PHP Error logs/Apache and possibly Java logs on remote development servers. I'm not looking for a full production log system like Splunk, but something that's ...
1
vote
3answers
681 views

tail -f and then exit on matching string

I am trying to configure a startup script which will startup tomcat, monitor the catalina.out for the string "Server startup", and then run another process. I have been trying various combinations of ...
3
votes
3answers
867 views

Can putty beep when tailing a log file?

I have a putty session tailing a log. I either keep flipping to it to see in anything has come up or I forget to check it at all. Can putty or tail be made to "beep" if anything scrolls into the ...
1
vote
4answers
95 views

Count amount of new lines with interval in log

Is there a way/tool to tail or watch a logfile and report the amount of lines it grows? E.g. I want to see the amount of new entries in mysql.log every 3 seconds. watch wc -l /path/to/log.log1 ...
2
votes
1answer
219 views

Multitail configuration:defaultcscheme isn't applied

Finally i got Multitail to work. The only problem is the Default Colorscheme isn't applied to a file i open with multitail, so have to go to the menu and apply it manually. My multitail.conf looks ...
3
votes
4answers
475 views

Searching for a tail tool for Linux to colorize and suppress lines by regx?

Is there any tool that does both, colorize and filtering lines to suppress form output by regex?
2
votes
6answers
2k views

Colour tail of Apache logs

Monitoring apache logs with tail –f tends gets very frustrating for the eyes after a while. Are there any tool/options to colorize the log outputs? Maybe signal FATAL with red, etc...
6
votes
2answers
757 views

Tail server logs into XMPP?

So I have two files, and if a new line appears on either of these files, I'd like to receive an IM (preferably jabber or gTalk) containing the contents of that line. Do you guys have any suggestions ...
2
votes
2answers
197 views

Bash edit file and keep last 500 lines

I am looking to create a cron job that opens a directory loops through all the logs i have created and deletes all lines but keep the last 500 for example. I was thinking of something along the lines ...
14
votes
2answers
18k views

How to display certain lines from a text file in Linux?

I guess everyone knows the useful Linux cmd line utilities head and tail. Head allows you to print the first X lines of a file, tail does the same but prints the end of the file. What is a good ...
3
votes
4answers
842 views

“watching” a log on FreeBSD vs Linux

On Linux systems I can watch -n1 tail /var/log/whatever.log or watch -n1 grep somestuff /var/log/whatever.log To show updates to a log every 1 seconds. On FreeBSD however, the watch command does ...
4
votes
5answers
693 views

Is there a `tail -f` equivalent for when a file is overwritten (instead of appended to)?

How do continuously monitor a file that is being continuously overwritten? Specifically, the file contains a single line of text which a background process is repeatedly opening and re-writing. I ...
8
votes
10answers
4k views

Tail multiple remote files

Is there a way to remote tail 2 files? I have two servers(a and b) behind a load balancer and I would like to do something like this if possible: tail -f admin@serverA:~/mylogs/log ...
4
votes
3answers
1k views

Monitor multiple Linux log files in real time

I'm debugging a Linux application that allows remote jobs to be submitted, logging the output from each job in a new file. The log file paths conform to: /joblogs/job_*/JOB.LOG where the wild card ...
6
votes
0answers
2k views

Log file rotation and “tail -f”

I use log4j to create rolling log files from my program. It writes to a log file until it reaches 256mb, and then it renames all the log files and creates a new log file and continues logging. It is ...
1
vote
2answers
72 views

CLI security program via tail

I am looking for a cli (command line interface) program that would basically tail either 1 log or a set of logs in /var/log and on the fly output in a more friendly manner. Perl would be best but ...
5
votes
2answers
2k views

Use local tools to monitor remote logs

I don't have root access on my hosted web server, but I would like to use tools like MultiTail to monitor log files that are generated on my web host. Is there a way I can pipe the log output on my ...
12
votes
6answers
4k views

Colorize Monitoring of Logs

I sometimes monitor apache and php error logs using tail under FreeBSD. Is there any way to get colorized output, either using tail or some other command line app? Alternatively, what is your ...
8
votes
8answers
2k views

Continuosly monitor logs with tail that are occasionally rotated

We're using tail to continuously monitor several logs, but when a log is rotated the tail for that file will cease. As far as I understand, the problem is that when the log is rotated, there is a new ...
0
votes
3answers
1k views

Applications to tail httpd logs over ssh in windows besides a ssh terminal

I'm looking for something like baretail with ssh support or the ability to read from standard input so I can pipe the output of plink. Does anyone have any suggestions.

1 2