Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 192.168.0.107: 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 192.168.10.10 :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

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.