Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to capture logs from Heroku. I have setup as suggested

I'm completely new to the rsyslog, please bear with me.

  1. Where do I see the logs from heroku?

  2. Also, how do I configure rsyslog to put all the Heroku logs in something like /var/log/syslog/heroku_%$YEAR%%$MONTH%%$DAY%.log ?

share|improve this question
  1. If you haven't set your rsyslogd server to get messages from heroku then probably nowhere

  2. You can try the LongTermLogRotation from the sample configuration files

Basically you create a rule,bind it (if you manage other logs with rsyslog) that will grab the logs from say specific hosts (heroku),format and store them in a specific location.

share|improve this answer
Doesn't the following in rsyslog.conf set the rsyslogd server to get messages from heroku, when the heroku drains are to port 514? $ModLoad imtcp $InputTCPServerRun 514 I thought by default rsyslog keeps the logs somewhere if the rules are not added. Let me know if I'm thinking on the wrong route. – Devi Mar 8 '12 at 9:19

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.