The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
42 views

How can I remove duplicate entries in linux log

I've turned mysql general log on and I've been logging every transaction that occurs for the last week. I also have a cronjob running every 5 minutes doing some mysql transactions which is polluting ...
3
votes
1answer
14 views

iptables LOG only once

I noticed that there are data in the iptables log that I don't need, so I was wondering if it's possible to change some configuration so that the log has less information, thus reducing the log's size....
0
votes
0answers
15 views

rsyslog: how to log to one of multiple log servers

I have a server that generates a lot of log content (single log file), and want to send it out to say 4 backends. I do not want all entries to be duplicated to every backend, but, say, rotate among ...
4
votes
2answers
60 views

Find IP addresses visiting /page1 but not /page2 from nginx access logfile

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
32 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
23 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= MAC=56:00:00:27:45:2d:fe:00:00:...
1
vote
2answers
62 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
44 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
32 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
92 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 ...