Questions tagged [tail]

Output the last part of files.

Output the last part of files, print the last part (10 lines by default) of each FILE; tail reads from standard input if no files are given or when given a FILE of `-'.

Manpage

96 questions
0
votes
2 answers

I want to exclude specific words from the results when piping tail into grep

I am using "tail -f /var/log/fail2ban.log -f /var/log/ufw.log | grep -e Ban -e BLOCK -e ALLOW" (without the quotes) and it is working but I want to exclude the results that have the words UDP and ICMP in them. When I try "tail -f…
Greg Azar
  • 1
  • 2
0
votes
0 answers

Delay in NFS Client file Updation in NFS Server

We have an NFS server and our custom board which is our NFS Client. We are generating a log file as part of our custom application. This log file is getting generated in the root file system of the board(NFS client) immediately after the application…
Aparna
  • 1
0
votes
1 answer

Linux cli pipeline command tail and grep

I am using tail to monitor a log file and using grep to filer the keyword. tail -F somefile.log | grep "keyword" is working tail -F somefile.log | awk '{print $4}' is working but if to put them together is not working, like tail -F somefile.log |…
olo
  • 103
  • 3
0
votes
1 answer

How to tail server.log and grep multiple text combination?

The server log is too large, I would like to grep the logs which has "/API/login" and "/API/init" from the server log. I'm able to use: tail -f /server.log | grep -i "/API/login" to capture those with "/API/Login" How to add in another condition to…
Tech
  • 3
  • 1
-1
votes
1 answer

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

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 for me? I tried
weismat
  • 343
  • 3
  • 16
-2
votes
1 answer

Omit certain lines from tail -f

I like tail -f but I like to omit lines that have a certain string in them. Is this possible? I have seen example to include certain string but not how to omit.
1 2 3 4 5 6
7