rsyslog inside docker containers => "rsyslogd is not running ... failed" -


i running rsyslog within docker containers send udp messages logstash.

when log docker container, , type:

service rsyslog status 

shows:

rsyslogd not running ... failed!  

however, while in container, if type:

service rsyslog start  

it starts no errors , no real sign of why failed @ start

i can not figure out why failing!!!!

*the rsyslog conf file has not been modified except modules allow imfile. rsyslog.conf follows:

#  /etc/rsyslog.conf    configuration file rsyslog. # #                       more information see #                       /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html ################# #### modules #### ################# module(load="imfile" pollinginterval="10") module(load="imuxsock" )  # provides support local system logging module(load="immark")  #provides --mark-- message capability  ########################### #### global directives #### ###########################  # # use traditional timestamp format. # enable high precision timestamps, comment out following line. # $actionfiledefaulttemplate rsyslog_traditionalfileformat  # # set default permissions log files. # $fileowner root $filegroup adm $filecreatemode 0644 $dircreatemode 0755 $umask 0022  # # place spool , state files # $workdirectory /var/spool/rsyslog  # # include config files in /etc/rsyslog.d/ # $includeconfig /etc/rsyslog.d/*.conf   ############### #### rules #### ###############  # # first standard log files.  log facility. # auth,authpriv.*                 /var/log/auth.log *.*;auth,authpriv.none          -/var/log/syslog #cron.*                         /var/log/cron.log daemon.*                        -/var/log/daemon.log kern.*                          -/var/log/kern.log lpr.*                           -/var/log/lpr.log mail.*                          -/var/log/mail.log user.*                          -/var/log/user.log  # # logging mail system.  split # easy write scripts parse these files. # mail.info                       -/var/log/mail.info mail.warn                       -/var/log/mail.warn mail.err                        /var/log/mail.err  # # logging inn news system. # news.crit                       /var/log/news/news.crit news.err                        /var/log/news/news.err news.notice                     -/var/log/news/news.notice  # # "catch-all" log files. # *.=debug;\         auth,authpriv.none;\         news.none;mail.none     -/var/log/debug *.=info;*.=notice;*.=warn;\         auth,authpriv.none;\         cron,daemon.none;\         mail,news.none          -/var/log/messages  # # emergencies sent logged in. # *.emerg                         :omusrmsg:*  # # have messages displayed on console, on virtual # console leave idle. # #daemon,mail.*;\ #       news.=crit;news.=err;news.=notice;\ #       *.=debug;*.=info;\ #       *.=notice;*.=warn       /dev/tty8  # named pipe /dev/xconsole `xconsole' utility.  use it, # must invoke `xconsole' `-file' option: # #    $ xconsole -file /dev/xconsole [...] # # note: adjust list below, or you'll go crazy if have reasonably #      busy site.. # daemon.*;mail.*;\         news.err;\         *.=debug;*.=info;\         *.=notice;*.=warn       |/dev/xconsole 

*i have script file starts rsyslog

if [[ -z "$(pgrep rsyslog)" ]];   echo "starting rsyslog"   service rsyslog start fi 

my conf file follows:

##get nginx error logs $inputfilename /var/log/nginx/error.log $inputfiletag http-error $inputfilestatefile stat-nginx-error $inputfileseverity error $inputfilefacility local7 $inputrunfilemonitor  #grab php-fpm access logs $inputfilename /var/log/php-fpm/access_log $inputfiletag php-fpm-access $inputfilestatefile stat-php-fpm-access $inputfileseverity info $inputfilefacility local7 $inputrunfilemonitor  #grab php-fpm error logs $inputfilename /var/log/php-fpm/error_log $inputfiletag php-fpm-error $inputfilestatefile stat-php-fpm-error $inputfileseverity error $inputfilefacility local7 $inputrunfilemonitor  #json template  template(name="json_temp" type="list")   { constant(value="{")     constant(value="\"@timestamp\":\"")         property(name="timegenerated" dateformat="rfc3339")     constant(value="\",\"message\":\"")         property(name="msg")     constant(value="\",\"severity_label\":\"")  property(name="syslogseverity-text")     constant(value="\",\"severity\":\"")        property(name="syslogseverity")     constant(value="\",\"facility_label\":\"")  property(name="syslogfacility-text")     constant(value="\",\"facility\":\"")        property(name="syslogfacility")     constant(value="\",\"program\":\"")         property(name="programname")     constant(value="\",\"pid\":\"")             property(name="procid")     constant(value="\",\"rawmsg\":\"")          property(name="rawmsg")     constant(value="\",\"syslogtag\":\"")       property(name="syslogtag")     constant(value="\"}\n")   }  if $programname == 'http-error' @ip.address:port;json_temp if $programname == 'http-error' stop if $programname == 'php-fpm-access' @ip.address:port;json_temp if $programname == 'php-fpm-access' stop if $programname == 'php-fpm-error' @ip.address:port;json_temp if $programname == 'php-fpm-error' stop   *.* @ip.address:port;json_temp 

any awesome because not understand why not starting up.

cheers


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -