Create a daily xcom.log
search cancel

Create a daily xcom.log

book

Article ID: 204312

calendar_today

Updated On:

Products

XCOM Data Transport XCOM Data Transport - Windows XCOM Data Transport - Linux PC XCOM - SUPPORT

Issue/Introduction

I want the xcom.log file to be written in a different folder and name each day, instead of having to move it each day.

The goal is to be able to periodically clear the archived logs, yet keep a daily log for a set of time as to investigate potential issues.

I understand that the GLB file might not support this option, as the only Symbolic supported is the %XCOM_HOME% variable. It won't allow more DOS commands either.

CNF files or xcomtcp parameter override are only good for transfers initiated from the local machine, but remotely triggered transfers will only use the GLB setting.

How can I achieve this?

Environment

  • XCOM™ Data Transport® for Windows
  • XCOM™ Data Transport® for Linux PC

Resolution

Unfortunately you won't be able to use any of the XCOM post processing scripts to do this.

We instead would like to suggest that you create a script to accomplish this. You can use Windows task scheduler and run a daily task at midnight.

To be on the safe side :

  1. Stop the xcomd service with command, "net stop xcomdsr
  2. Move the %xcom_home%\xcom.log file to wherever you need it to be.
  3. Create a new xcom.log with permissions for everybody to write to
  4. Start the xcomd service again with command "net start xcomdsrv".

For XCOM on Linux you can use Cron to accomplish the same task.