output log to another log server
-
pccwglobalit
- Posts: 105
- Joined: Wed Mar 11, 2015 9:00 pm
output log to another log server
we have setup all hosts to transfer the log to nagioslogserver. however, we also need forward all the log to another syslog servers. will that be possible?
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: output log to another log server
How are they forwarding the logs to Nagios Log Server? Are these windows or linux servers?pccwglobalit wrote:we have setup all hosts to transfer the log to nagioslogserver.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
pccwglobalit
- Posts: 105
- Joined: Wed Mar 11, 2015 9:00 pm
Re: output log to another log server
Hi,
We want to forward the logs from Nagios log server to other syslog server, here is the similar thread - https://support.nagios.com/forum/viewto ... 37&t=32145
but not sure how to get it added to the config, get we ask Nagios?
output {
syslog {
appname => 'XXXGlobal-IT'
codec => 'plain'
facility => 'syslogd'
host => 192.168.1.23
msgid => 'nls3'
port => '514'
procid => '-'
protocol => 'udp'
rfc => 'rfc3164'
severity => 'informational'
sourcehost => '%{host}'
tag => 'XXXGlobal-IT'
workers => '5'
}
}
Gives this error
{:timestamp=>"2015-09-08T18:18:26.654000+0000", :message=>"The error reported is: \n Couldn't find any output plugin named 'syslog'. Are you sure this is correct? Trying to load the syslog output plugin resulted in this error: no such file to load -- logstash/outputs/syslog"}
Any idea?
Regards,
Vincent
We want to forward the logs from Nagios log server to other syslog server, here is the similar thread - https://support.nagios.com/forum/viewto ... 37&t=32145
but not sure how to get it added to the config, get we ask Nagios?
output {
syslog {
appname => 'XXXGlobal-IT'
codec => 'plain'
facility => 'syslogd'
host => 192.168.1.23
msgid => 'nls3'
port => '514'
procid => '-'
protocol => 'udp'
rfc => 'rfc3164'
severity => 'informational'
sourcehost => '%{host}'
tag => 'XXXGlobal-IT'
workers => '5'
}
}
Gives this error
{:timestamp=>"2015-09-08T18:18:26.654000+0000", :message=>"The error reported is: \n Couldn't find any output plugin named 'syslog'. Are you sure this is correct? Trying to load the syslog output plugin resulted in this error: no such file to load -- logstash/outputs/syslog"}
Any idea?
Regards,
Vincent
Re: output log to another log server
Did you install the plugin?
Code: Select all
/usr/local/nagioslogserver/logstash/bin/plugin install logstash-output-syslog-
pccwglobalit
- Posts: 105
- Joined: Wed Mar 11, 2015 9:00 pm
Re: output log to another log server
We need install this plugin on every node?
after install, what output filter we need put?
thanks
after install, what output filter we need put?
thanks
-
pccwglobalit
- Posts: 105
- Joined: Wed Mar 11, 2015 9:00 pm
Re: output log to another log server
we have installed output and apply it.
however, we cannot start logstash.
there is error
TypeError: can't convert nil into String
however, we cannot start logstash.
there is error
TypeError: can't convert nil into String
-
pccwglobalit
- Posts: 105
- Joined: Wed Mar 11, 2015 9:00 pm
Re: output log to another log server
we are using the following config
syslog {
appname => 'ABCD'
codec => 'plain'
host => '192.168.1.190'
facility => 'syslogd'
port => '514'
protocol => 'udp'
severity => 'informational'
sourcehost => '%{host}'
}
syslog {
appname => 'ABCD'
codec => 'plain'
host => '192.168.1.190'
facility => 'syslogd'
port => '514'
protocol => 'udp'
severity => 'informational'
sourcehost => '%{host}'
}
Re: output log to another log server
To start with, I'd set up a UDP output, which is more simple to setup and will achieve the same results. The syslog output (if it's anything like the syslog input) may apply a filter before the output of information occurs.
This will take all of your information (as it is, after it passes through your inputs/filters) and export it to 192.168.1.190:514 via UDP.
Try the following configuration instead:You can send messages compliant with RFC3164 or RFC5424 UDP or TCP syslog transport is supported
Code: Select all
udp {
host => '192.168.1.190'
port => '514'
}-
pccwglobalit
- Posts: 105
- Joined: Wed Mar 11, 2015 9:00 pm
Re: output log to another log server
thanks. it is working now.
Re: output log to another log server
Are we all right to mark this one resolved and close it?pccwglobalit wrote:thanks. it is working now.
Former Nagios Employee.
me.
me.