0

I am using AWS Elasticbeanstalk to run my java web application. In EC2 node under /etc/rsyslog.d/web.conf

 if $programname  == 'web' then {
  *.=warning;*.=err;*.=crit;*.=alert;*.=emerg /var/log/web.stderr.log
  *.=info;*.=notice /var/log/web.stdout.log
}

I get what is being done. but I did not get where the $programname is set as web. if i want to create my own programname and redirect logs to different file, how to do it?

2
  • Typically, the program name is set when a program calls openlog(). Commented May 10, 2023 at 16:45
  • so , openlog is called by elasticbeankstalk? is there any reference on how to create new programname? Commented May 10, 2023 at 18:15

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.