My understanding rsyslogis that it is a server implementation syslogcommon on Ubuntu machines.
Moreover, I understand what rsyslogcan be used to output / write STDOUToutput , as well as standard messages syslog.
Finally, I understand that I rsyslogcan forward any recorded messages (again, coming from STDOUTeither the client syslog) to another server, for example, the aggregator log or another server rsyslog, etc.
So, first of all, if something that I mentioned above is wrong, start by correcting my understanding of the work syslog/ rsyslogand their relationship with each other!
If my assumptions are more or less correct, give the following two options:
- Option # 1: Log in
STDOUTand configure rsyslogto capture this thread and send log messages to a remote process (say, a log aggregator); or - Option # 2: Log in
syslogand configure rsyslogit to capture and forward log messages to the same remote process
Given these two options, I would prefer # 1, since:
- When launched locally or from the IDE, it
STDOUTwill print to the console; and - When working in any non-local environment, it
STDOUTwill simply be “assembled” usingrsyslog
If I go with Option # 2, I lose console visibility when running locally.
, - // // STDOUT, № 2 /? , ?