ot4i / ace-docker

73 stars 167 forks source link

How to change default events log file location and number of events log file for ACE integration server #161

Closed vietph83 closed 3 years ago

vietph83 commented 3 years ago

Hi IBM support team

I have an ACE-MQCLIENT container Events log files were found in /home/aceuser/ace-server/log

How can I change that default events log file location, for example, I would like to change it to /var/acelog How can I change number of generated log file, for example 5 log files instead of 3 log files (default) as below

Thank you

[aceuser@79a09df80ac7 ace-server]$ ls
config  log  overrides  run  server.conf.yaml
[aceuser@79a09df80ac7 ace-server]$ cd log
[aceuser@79a09df80ac7 log]$ ls -ltr
total 6584
-rw-r----- 1 aceuser aceuser       0 Jun 15 09:04 integration_server.MY_TEST_ACE_SERVER.events.txt.2
-rw-r----- 1 aceuser aceuser     576 Jun 15 09:04 integration_server.MY_TEST_ACE_SERVER.events.txt.1
-rw-rw---- 1 aceuser aceuser 6731030 Aug  2 08:47 integration_server.MY_TEST_ACE_SERVER.events.txt
vietph83 commented 3 years ago

Hi I think I figured that out This can be configured via server.conf.yaml file

Log:
  #consoleLog: true          # Control writing BIP messages to standard out. Set to true or false, default is true.
  #outputFormat: 'text'      # Set the format for writing BIP messages ibmjson or text, default is text.
  #eventLog: '[iib.system-work-dir]/log/[iib.system-node-label].[iib.system-server-label].events.txt'              # Control writing BIP messages to file. Set to '' to disable.
  #eventLogFileSize: 10      # The maximum size in MB of an event log file before it is rotated into a new file
  #eventLogFileCount: 10     # The maximum number of event log files that should be rotated between.