The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
2answers
42 views

unix - select specific lanes from logs

I need help with selecting specific data's from log files. I need two scripts: I need to select all IP addresses that only visited /page1 I need to select all IP addresses that visited /page1 but ...
1
vote
0answers
25 views

rhel - file modification logs

I found a strange file in my /home/user named FireZeMissiles1111.tmp. I am the sole user and did not create it, so it is kind of suspicious. It may have been left there by a program who's programmer ...
1
vote
0answers
19 views

How to customise the output format for linux log when view log in terminal?

when I run this monitor command $ sudo tail -f /var/log/ufw.log | cat -n 1 May 23 03:04:25 Vultr-Ubuntu14-Tokyo kernel: [51809.671147] [UFW BLOCK] IN=eth0 OUT= ...
1
vote
2answers
48 views

How can I use Awk to convert a unix timestamp to human readable when doing a Tail -f logfile?

I'm currently doing a tail -f mysql.log and also have it color coded. But how would I use awk to convert the unix timestamps to human readable format? tail -f /var/lib/mysql/mysql-slow.log | awk ...
0
votes
1answer
34 views

How to Tail -f output with colors using only Awk and show the rest of the output?

I was able to do a tail -f output with colors using the Awk command. But I'm unsure how to output the rest of the log as it seems to be filtering only those 2 lines. I also want to see the other lines ...
0
votes
1answer
30 views

Capture specific string and send notification every time

This is a script in bash. Here Which capture a string "ERROR: your TCP- connection is dead." from a Live dynamic log file. Here the name of a log file "TcpRcpt.log" which contain sample of a log ...
1
vote
2answers
73 views

How to protect/secure the “sudo” log_input/log_output logs? [duplicate]

My Chief Security Officer (CSO) want to log the activity of the privileged account (root). I know I can configure sudo to log user input (key strokes) and console/terminal output (stdout/stderr), as ...