ajc80, Sunday, January 29, 2006, 3:30:27 PM, you wrote:
Hello,
I'm a newbie to syslog-ng, I have followed the instructions and used and altered the necessary examples to suit my directory structures, so my syslog messages are dumped in to mysql database.
When starting syslog-ng I get the following messages:
# /etc/init.d/syslog-ng start Starting MySQL pipe... Starting syslog-ng... Warning: No source refers to internal messages, they'll go to /dev/null unresolved reference: inputs Error initializing configuration, exiting.
The "No source refers to internal messages...." message I understand.
The "unresolved reference: inputs" I don't and can't seem to find anything in the archives.
Looking through your conf file I don't see an inputs source - except the commented out Solaris one.
I've included the syslog-ng.conf file and the mysql.pipe file below.
Any help would be appreciated.
Thanks,
Adrian.
##################################################################### # Define syslog input stream # This is specific to Solaris 9
# source inputs { internal(); # sun-streams("/dev/log" door("/var/run/syslog_door")); # tcp(max_connections(1000)); };
# For newer versions of Linux (Debian GNU/Linux woody, # and RedHat Linux post 7.0) # source stdlog { unix-dgram("/dev/log"); };
As above. I am a newbie myself so I am probably talking through my hat anyway ;)
-- Best regards, David mailto:dma at pern.co.uk
####################################################################### Hi David, I'm still none the wiser. I have hashed out the three lines which start source inputs:
# source inputs { internal(); # sun-streams("/dev/log" door("/var/run/syslog_door")); # tcp(max_connections(1000)); };
As it suggests that this is for Solaris systems only, and Redhat should use the following line:
# For newer versions of Linux (Debian GNU/Linux woody, # and RedHat Linux post 7.0) # source stdlog { unix-dgram("/dev/log"); };
Which I un-hashed. Where would I places the inputs and what would they look like?? Any help very much appreciated. Kind regards, Adrian.
Adrian, Saturday, February 11, 2006, 10:17:32 PM, you wrote:
#######################################################################
Hi David,
I'm still none the wiser. I have hashed out the three lines which start source inputs:
# source inputs { internal(); # sun-streams("/dev/log" door("/var/run/syslog_door")); # tcp(max_connections(1000)); };
As it suggests that this is for Solaris systems only, and Redhat should use the following line:
# For newer versions of Linux (Debian GNU/Linux woody, # and RedHat Linux post 7.0) # source stdlog { unix-dgram("/dev/log"); };
Which I un-hashed. Where would I places the inputs and what would they look like??
Any help very much appreciated.
Kind regards,
Adrian.
If you notice, in the lines you comment out for the Solaris only, the name of the source is "inputs", whereas for the newer versions of Linux which you uncommented the name of the source is "stdlog" which you would use in your log statements. -- Best regards, David mailto:dma@pern.co.uk
participants (2)
-
Adrian
-
David Anderson