All Questions
4 questions
1
vote
3
answers
451
views
Cron public IP to log file [duplicate]
I want to log my public ip to a file using cron. Something like this:
2021-05-17T01:11:46 99.99.99.99
2021-05-17T01:12:46 99.99.99.99
2021-05-17T01:13:46 99.99.99.99
Here's what I've cobbled together:...
0
votes
2
answers
295
views
Extracting 2 dates from log file with specific patterns and compare the 2 dates
It seems I have problems with my connection pool tool. There is a big delay when it obtains the DB connection.
What I try to achieve is to get all the cases from log file when this incident occurs.
...
0
votes
1
answer
392
views
get number of lines which has particular record from last hour log
I need to get number of lines which has particular record from last hour log .
log record looks like this.
09:28:03.155 [pool-2-thread-1030]-Rcvd msg {src='90000000',dst='101',msg='2500FREE',trxId='...
0
votes
2
answers
2k
views
make a loop run at the starting second of every minute
I'm using for nicstat this command
while true; do nicstat -eth1 1 60 > log-$(date +%F-%T).txt; done
this command creates log file for each 60 seconds of my ethernet interface, the problem is the ...