The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
15 views

How to write and handle custom log file properly?

I had a task that I have to write up a simple bash script which in turn executes admin command from Websphere Application Server (WAS). I put it into /etc/cron.daily folder hoping it would be executed ...
3
votes
1answer
25 views

Print proper log file from a terminal session

I am trying to log a terminal with the ssh user@ip | tee -a test.log command. But, when I push backspace it prints in the log like: pwe[J[J[Jexit (for example). Is there any specific option ...
2
votes
0answers
17 views

Difference between “install” and “installed” in dpkg.log

Some recently installed packages appear like so: [date] [time] install [package name] [date] [time] installed [package name] but some packages (e.g. man-db which I haven't manually installed) ...
0
votes
1answer
47 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
19 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
17 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
63 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
33 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
28 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
66 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
49 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
34 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
105 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 ...