Set up logs and configuration files
The following table summarizes the default location of the IG configuration and logs.
Purpose | Default location on Linux | Default location on Windows |
---|---|---|
Log messages from IG and third-party dependencies |
|
|
Administration (admin.json) Gateway (config.json) |
|
|
Routes (Route) |
|
|
SAML 2.0 |
|
|
Groovy scripts for scripted filters and handlers, and other objects |
|
|
Temporary directory To change the directory, configure |
|
|
JSON schema for custom audit To change the directory, configure |
|
|
Secure the configuration and logs
For the /logs
, /tmp
, and all configuration directories, allow the following
access:
-
Highest privilege the IG system account.
-
Least priviledge for specific accounts, on a case-by-case basis
-
No priviledge for all other accounts, by default
Change the default location of the configuration
By default, the base location for IG configuration files is in the following directory:
When IG is installed with the Windows startup batch script, the base location is configured in the batch script. For other installations, change the default base location in the following ways:
-
Set the
IG_INSTANCE_DIR
environment variable to the full path to the base location: -
Specify the base location as an argument. The following example reads the configuration from the
config
directory under the instance directory: