Search Results

Search: Posts Made By: timmywong
3,311
Posted By timmywong
would love a solution either bash, perl or python...
would love a solution either bash, perl or python with fast performance. The bash method mentioned above is a bit too slow.
3,311
Posted By timmywong
the log will be realtime., Timestamp identical.
the log will be realtime., Timestamp identical.
3,311
Posted By timmywong
Extract the last 10 minutes from logfile
Any better way to extract the last 10 minutes from logfile?

Dec 18 09:41:18 aaa
Dec 18 09:46:29 aa
Dec 18 09:48:39 vvv
Dec 18 09:48:54 bbb
Dec 18 09:54:47 bbb
Dec 18 09:55:33 fcf
Dec...
1,171
Posted By timmywong
thank buddies.
thank buddies.
1,171
Posted By timmywong
awk or sed or any commands to stripe data
Say i have:
g_gateway domain="abc.com" to="123.123.123.123" relay="false"

how do i use awk or sed or any method to get the result below:
abc.com 123.123.123.123
3,504
Posted By timmywong
dude is not altering. its printing out the last...
dude is not altering. its printing out the last 10 minutes of a log file. It will save energy to just print the last 10 minutes, then grep for a specific keyword. if you grep directly from a millions...
3,504
Posted By timmywong
cool. both seems to work
cool. both seems to work
3,504
Posted By timmywong
sed Equivalent for awk/grep
Any equivalent command using awk or grep?
sed -n "/^$(date --date='10 minutes ago' '+%b %_d %H:%M')/,\$p" /abc.log
Forum: Red Hat 09-27-2013
21,947
Posted By timmywong
So far i have the following basic settings, I...
So far i have the following basic settings, I read some stuff, need a "$ModLoad imfile"and also a separate config file place inside /etc/rsyslog.d/. Its kinda complicated Any easy way to do it?

...
Forum: Red Hat 09-27-2013
21,947
Posted By timmywong
How to send specific logs to remote rsyslog?
Assuming i have /usr/local/psa/var/log/mail.log on client server.

What are the configuration on rsyslog (server) and rsyslog (client)?

on rsyslog (server) i would also want it to be put on a...
Forum: UNIX and Linux Applications 08-13-2013
1,802
Posted By timmywong
Haproxy SSL
I have a single SSL eg. www.abc.com.

Im trying to get haproxy to accept any request eg. xyz.com or ijk.com to redirect to https://www.abc.com. Is this possible?

...
7,400
Posted By timmywong
Nah... I don't want to use the common rc.local or...
Nah... I don't want to use the common rc.local or nohup method. The script i wrote is for testing only. I wish to use daemon
7,400
Posted By timmywong
How to make a bash or shell script run as daemon?
Say i have a simple example:

root@server [/etc/init.d]# cat /root/scripts/test.sh
while sleep 5
do
echo "how are u mate" >> /root/scripts/test.log
done
root@server [/etc/init.d]#

Instead...
3,642
Posted By timmywong
sudo on becoming root
Anyone able to explain why if i run "sudo -i" or "sudo -s" i am able to get into root by just keying my own password?

How to avoid this from happening coz i need all the users to use su - only.
3,310
Posted By timmywong
works great Agama. Thanks ---------- Post...
works great Agama. Thanks

---------- Post updated at 09:51 AM ---------- Previous update was at 09:49 AM ----------

its centos 5.7. Meaning if it is not in order, it wont work?
3,310
Posted By timmywong
Your doesn't seem accurate though... the...
Your doesn't seem accurate though...

the output seems weird too.

Sat Feb 11 14:23:00-14:23:59 Success:4 Fail:2
Sat Feb 11 13:23:00-13:23:59 Success: Fail:
Sat Feb 11 14:23:00-14:23:59...
3,310
Posted By timmywong
Nice! What if i want it be calculated by hour...
Nice! What if i want it be calculated by hour instead of minute? which part i need to change?
43,249
Posted By timmywong
nice! it works.
nice! it works.
43,249
Posted By timmywong
how to use "cut" or "awk" or "sed" to remove a string
logs:

[Sun Feb 12 10:36:20 2012] "/home/abc/public_html/index.php"
[Sun Feb 12 10:36:20 2012] "/home/abc/public_html/index.php"
[Sun Feb 12 10:36:20 2012] "/home/xyz/public_html/index.php"
[Sun...
3,310
Posted By timmywong
thanks mate!
thanks mate!
3,310
Posted By timmywong
Count of matched pattern occurences by minute and date in a log file
Anyone knows how to use AWK to achieve the following

Sun Feb 12 00:41:01-00:41:59 Success:2 Fail:2
Sun Feb 12 00:42:01-00:42:59 Success:1 Fail:2
Sun Feb 12 01:20:01-01:20:59 Success:1 Fail:2...
Showing results 1 to 21 of 21

 
All times are GMT -4. The time now is 07:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy