Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Results 1 to 4 of 4

Thread: syslog logging to another device.

  1. #1

    Title
    Senior Member
    Join Date
    Dec 2012
    Posts
    188
    Thanks
    126
    Thanked 37 Times in 21 Posts

    syslog logging to another device.

    Hey,

    I am trying to configure syslogd to forward the logs to another host but am unable to get it working

    from what i can see in the "/etc/init.d/syslog" it looks like it is pulling the config from "/etc/syslog-startup.conf" but after adding my remote host like below the logs are not being sent.

    Code:
    # This configuration file is used by the busybox syslog init script,
    # /etc/init.d/syslog[.busybox] to set syslog configuration at start time.
    
    DESTINATION=file		# log destinations (buffer file remote)
    LOGFILE=/var/log/messages	# where to log (file)
    REMOTE=192.168.0.30:514		# where to log (syslog remote)
    REDUCE=no			# reduce-size logging
    DROPDUPLICATES=no		# whether to drop duplicate log entries
    #ROTATESIZE=0			# rotate log if grown beyond X [kByte]
    #ROTATEGENS=3			# keep X generations of rotated logs
    BUFFERSIZE=64			# size of circular buffer [kByte]
    FOREGROUND=no			# run in foreground (don't use!)
    LOGLEVEL=5			# local log level (between 1 and 8)
    I am sniffing the traffic from engima2 device and i can not see any traffic being sent out on port 514 after restarting syslog and rebooting the box.

    Any idea where i should specifily the remote host. I have also tired adding the remote host to this "/etc/syslog.conf" in the usual syslog format but no luck with that either.
    Code:
    #  /etc/syslog.conf	Configuration file for busybox's syslogd utility
    *.*                                       @192.168.0.30
    On another note I dont see any auth logs. is there a way to enable this

  2. #2
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,769
    Thanks
    235
    Thanked 1,656 Times in 1,305 Posts
    Try setting
    Code:
     DESTINATION=remote
    in the file too (i.e. the "buffer file remote" comment is a 3-way choice...)
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  3. The Following User Says Thank You to birdman For This Useful Post:

    Alankellyeire (11-08-19)

  4. #3

    Title
    Senior Member
    Join Date
    Dec 2012
    Posts
    188
    Thanks
    126
    Thanked 37 Times in 21 Posts
    can't believe I missed that. I tired using upper case "REMOTE"

    Is it possible to log to both file and remote. It does not look like it is possible in the syslog startup script.

  5. #4
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,769
    Thanks
    235
    Thanked 1,656 Times in 1,305 Posts
    Quote Originally Posted by Alankellyeire View Post
    can't believe I missed that. I tired using upper case "REMOTE"
    It's amazing what Google searches can throw up...
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.