Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.
Feb 4 10:32:57 master sshd[2070]: pam_unix(sshd:session): session opened for user root by (uid=0) 

Feb 4 10:32:59 master sshd[2070]: Received disconnect from 11: disconnected by user

this is some of my system logs what i want is i need logs in format like below

Feb 04 2013 10:32:57 :sshd[2070]: pam_unix(sshd:session): session opened for user root by (uid=0)

the changes are in bold. i need bold format.

also if we are a server machine and if we are fetching logs from 2 clients then how to store that logs in separately that is something like client1 logs in clientone dir and clienttwo logs in client2 dir by using rsyslog.conf is this possible

share|improve this question
Have you looked through man rsyslog.conf? What have you tried? –  terdon Feb 8 '13 at 14:07
i just need that bold for my log analyzer project for faster searching like year wise, date wise, month wise –  Tushar Sarde Feb 8 '13 at 14:11
You can get the bold by usin a perl parser with Term::ANSIColor. I would be happy to provide the parser if you can find out how to change the log format. –  terdon Feb 8 '13 at 14:13
yeah i want to change my log format which already i have shown in bold format –  Tushar Sarde Feb 8 '13 at 14:14
see my current log format in first line whatever changes i need is instead of master= , 4 = 04 and 2013 year is added like this format –  Tushar Sarde Feb 8 '13 at 14:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.