Question on community rsyslog cookbook

I’m testing out the community rsyslog cookbook on a Vagrant box and I’m
sure I’m making some simple mistake somewhere, but I can’t seem to get the
rsyslog recipe to make the rsyslog daemon listen to remote connections.

I’m using the stock rsyslog recipe and below are my attributes I’m passing
to the vagrant box.

   "rsyslog" => {
     "server" => "true",
     "server_ip" => "0.0.0.0",
     "protocol" => "udp",
     "port" => "514",
     "log_dir" => "/var/log",
     "remote_logs" => "true",
     "user" => "root",
     "group" => "root",
     "high_precision_timestamps" => "true"
   }

Any suggestions?

Are you sure you have the Vagrant box configured to allow for remote connections?

From: Eric Feldhusen [mailto:efeldhusen.lists@gmail.com]
Sent: Wednesday, November 06, 2013 8:29 AM
To: chef@lists.opscode.com
Subject: [chef] Question on community rsyslog cookbook

I’m testing out the community rsyslog cookbook on a Vagrant box and I’m sure I’m making some simple mistake somewhere, but I can’t seem to get the rsyslog recipe to make the rsyslog daemon listen to remote connections.

I’m using the stock rsyslog recipe and below are my attributes I’m passing to the vagrant box.

   "rsyslog" => {
     "server" => "true",
     "server_ip" => "0.0.0.0",
     "protocol" => "udp",
     "port" => "514",
     "log_dir" => "/var/log",
     "remote_logs" => "true",
     "user" => "root",
     "group" => "root",
     "high_precision_timestamps" => "true"
   }

Any suggestions?

If I do a quick netcat on the vagrant box to itself with localhost/127.0.01
as the address, it works.

nc -w0 -u 127.0.0.1 514 <<< "This is awesome"

But if I use either of the two ip addresses on the vagrantbox, it doesn't
work. And iptables/ip6tables is off.

That's what's making me think it's a rsyslog configuration, but I could be
wrong.

I can ssh into the vagrant guest from my laptop using the vagrant user and
the vagrant guest ip address with a normal ssh command and not the vagrant
ssh, so network access from host to guest is working.

Eric

On Wed, Nov 6, 2013 at 12:27 PM, THARP, JOSHUA L jt3518@att.com wrote:

Are you sure you have the Vagrant box configured to allow for remote
connections?

From: Eric Feldhusen [mailto:efeldhusen.lists@gmail.com]
Sent: Wednesday, November 06, 2013 8:29 AM
To: chef@lists.opscode.com
Subject: [chef] Question on community rsyslog cookbook

I'm testing out the community rsyslog cookbook on a Vagrant box and I'm
sure I'm making some simple mistake somewhere, but I can't seem to get the
rsyslog recipe to make the rsyslog daemon listen to remote connections.

I'm using the stock rsyslog recipe and below are my attributes I'm passing
to the vagrant box.

   "rsyslog" => {

     "server" => "true",

     "server_ip" => "0.0.0.0",

     "protocol" => "udp",

     "port" => "514",

     "log_dir" => "/var/log",

     "remote_logs" => "true",

     "user" => "root",

     "group" => "root",

     "high_precision_timestamps" => "true"

   }

Any suggestions?

Did you try doing "netstat -an" and grepping for port 514? If it shows
that rsyslogd is bound to "*:514", then the problem is not with the
cookbook / rsyslogd setup, but with networking to the Vagrant box.

  • Julian

On Wed, Nov 6, 2013 at 12:46 PM, Eric Feldhusen
efeldhusen.lists@gmail.com wrote:

If I do a quick netcat on the vagrant box to itself with localhost/127.0.01
as the address, it works.

nc -w0 -u 127.0.0.1 514 <<< "This is awesome"

But if I use either of the two ip addresses on the vagrantbox, it doesn't
work. And iptables/ip6tables is off.

That's what's making me think it's a rsyslog configuration, but I could be
wrong.

I can ssh into the vagrant guest from my laptop using the vagrant user and
the vagrant guest ip address with a normal ssh command and not the vagrant
ssh, so network access from host to guest is working.

Eric

On Wed, Nov 6, 2013 at 12:27 PM, THARP, JOSHUA L jt3518@att.com wrote:

Are you sure you have the Vagrant box configured to allow for remote
connections?

From: Eric Feldhusen [mailto:efeldhusen.lists@gmail.com]
Sent: Wednesday, November 06, 2013 8:29 AM
To: chef@lists.opscode.com
Subject: [chef] Question on community rsyslog cookbook

I'm testing out the community rsyslog cookbook on a Vagrant box and I'm
sure I'm making some simple mistake somewhere, but I can't seem to get the
rsyslog recipe to make the rsyslog daemon listen to remote connections.

I'm using the stock rsyslog recipe and below are my attributes I'm passing
to the vagrant box.

   "rsyslog" => {

     "server" => "true",

     "server_ip" => "0.0.0.0",

     "protocol" => "udp",

     "port" => "514",

     "log_dir" => "/var/log",

     "remote_logs" => "true",

     "user" => "root",

     "group" => "root",

     "high_precision_timestamps" => "true"

   }

Any suggestions?

--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: Julian Dunn's Blog - Commentary on media, technology, and everything in between. * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]