port 514 not working

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

port 514 not working

Post by benhank »

I have a number of devices sending their log data to NLS using port 514. I sent over a few logs to test NLS, and I get this error:

Code: Select all

{:timestamp=>"2015-06-08T11:05:13.233000-0400", :message=>"syslog tcp listener died", :address=>"0.0.0.0:514", :exception=>#, :backtrace=>["org/jruby/ext/socket/RubyTCPServer.java:124:in `initialize'", "org/jruby/RubyIO.java:852:in `new'", "/usr/local/nagioslogserver/logstash/lib/logstash/inputs/syslog.rb:135:in `tcp_listener'", "/usr/local/nagioslogserver/logstash/lib/logstash/inputs/syslog.rb:90:in `run'"], :level=>:warn}
I have tested both of the following filters and get the error no matter which is active:

Code: Select all

syslog {
    type => 'syslog'
    port => 514
}
or

Code: Select all

input {
  tcp {
    port => 514
    type => syslog
  }
  udp {
    port => 514
    type => syslog
  }
}
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: port 514 not working

Post by eloyd »

Edit: Posting removed by author for lack of reading the original question properly. :)
Last edited by eloyd on Mon Jun 08, 2015 10:58 am, edited 1 time in total.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: port 514 not working

Post by jolson »

Have you already been through the privileged port guide? If not, please follow it: https://assets.nagios.com/downloads/nag ... Server.pdf

If you have already done so, please post your entire Logstash configuration.

Code: Select all

cat /usr/local/nagioslogserver/logstash/etc/conf.d/*
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: port 514 not working

Post by benhank »

ok I made 2 mistakes:
1. I rebuilt the server and forgot to add the root usr.
2. the device was sending its logs as user not syslog.
thanks fellas
allset
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: port 514 not working

Post by ssax »

Glad you got that resolved, marking as resolved and locking the topic.
Locked