Article ID: 118984, created on Dec 3, 2013, last review on Dec 29, 2016

  • Applies to:
  • Odin Business Automation Standard

Symptoms

Is it possible to setup remote logging for OBAS logs? In other words, to have log files (for example /var/log/hspc/xml_api.log) being constantly managed on a remote server.

Resolution

This is possible to configure log files path for different location than '/var/log/' using the following steps:

  1. Mount corresponding Samba share or NFS to some mount point on a local NFS;
  2. Reconfigure OBAS logger (/etc/hspc/logger.conf):

    /etc/hspc/logger.conf
    --->8---
     <param name="filename" value="/var/log/hspc/hspc.log"/>
     <param name="filename" value="/var/log/taskman.log"/>
     <param name="filename" value="/var/log/hspc/upgrade.log"/>
     <param name="filename" value="/var/log/hspc/xml_api.log"/>
     <param name="filename" value="/var/log/hspc/vzcoll.log"/>
     <param name="filename" value="/var/log/hspc/vzcoll_transport.log"/>
    ---8<---
    
  3. Restart OBAS services to apply the changes:

    ~# /etc/init.d/hspcd restart
    

Warning: Restart of the hspcd service will cause OBAS downtime for about 10-60 seconds.

NOTE: no guarantees can be given for such configuration including correct log rotation, start-up and run-time failures and so on.

400e18f6ede9f8be5575a475d2d6b0a6 caea8340e2d186a540518d08602aa065

Email subscription for changes to this article
Save as PDF