Changing Console log directories in ConsoleWorks on Unix / Linux

From TDiWiki

Jump to: navigation, search

To change the default location of the Log directories on Unix / Linux, change the CONWRKS_LOG parameter in CWExports.sh. This file is found in the <invocation_Specific>/config directory.

The value to change is "$CONWRKS_BASE/log" in CONWRKS_LOG="$CONWRKS_BASE/log".

Change the value to reflect the new path. For example CONWRKS_LOG="/your_log_dir/logs”.

Remember to restart ConsoleWorks to pick up the changes.

Now you can make your log location changes to an exported XML file that contains your Consoles. When using the XML Export / Import feature, it’s a good idea to change one of the components you wish to modify in the appropriate configuration screen first, that way you’ll see where it appears in the export. In this case you would use the Console configuration screen for one console, disable the console, change it’s location to the new directory, move the logs to the new directory, then enable the console. This way the console will re-open the current console for the current day and resume writing to it. The Export XML and Import XML feature is found under the >Admin menu item.

Suggestion: If you are changing many consoles, work in smaller groups so as not to affect all logs at the same time. At the time of export, disable the consoles via >Admin >Console >Disable, to be changed. It will make the Export and import go quicker and the data loss will be minimized. Once the Consoles have been imported, you can go to >Admin >Console >Enable and enable the consoles you’ve changed. Similar to the example above, the consoles will resume writing to the current day’s consoles located in the new directories.. The XML Export/Import feature is discussed in the Online Help.

back to CW Linux/Unix page

Personal tools