---
title: Set up logs and configuration files
description: The following table summarizes the default location of the IG configuration and logs.
component: pinggateway
version: 7.2
page_id: pinggateway:installation-guide:configure
canonical_url: https://docs.pingidentity.com/pinggateway/7.2/installation-guide/configure.html
revdate: 2022-04-12T12:16:42Z
section_ids:
  secure_the_configuration_and_logs: Secure the configuration and logs
  configure-default-location: Change the default location of the configuration
---

# 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                                                                                                         | `$HOME/.openig/logs`           | `%appdata%\OpenIG\logs`           |
| Administration ([admin.json](../reference/AdminHttpApplication.html))Gateway ([config.json](../reference/GatewayHttpApplication.html))                    | `$HOME/.openig/config`         | `%appdata%\OpenIG\config`         |
| Routes ([Route](../reference/Route.html#AdminHttpApplication))                                                                                            | `$HOME/.openig/config/routes`  | `%appdata%\OpenIG\config\routes`  |
| SAML 2.0                                                                                                                                                  | `$HOME/.openig/SAML`           | `%appdata%\OpenIG\SAML`           |
| Groovy scripts for scripted filters and handlers, and other objects                                                                                       | `$HOME/.openig/scripts/groovy` | `%appdata%\OpenIG\scripts\groovy` |
| Temporary directoryTo change the directory, configure `temporaryDirectory` in [admin.json](../reference/AdminHttpApplication.html)                        | `$HOME/.openig/tmp`            | `%appdata%\OpenIG\tmp`            |
| JSON schema for custom auditTo change the directory, configure `topicsSchemasDirectory` in [AuditService](../reference/AuditFramework.html#AuditService). | `$HOME/.openig/audit-schemas`  | `%appdata%\OpenIG\audit-schemas`  |

## 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:

* Linux

* Windows

```
$HOME/.openig
```

```
%appdata%\OpenIG
```

For IG in standalone mode, 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:

  * Linux

  * Windows

  ```bash
  $ export IG_INSTANCE_DIR=/path/to/instance-dir
  ```

  ```
  C:\set IG_INSTANCE_DIR=\path\to\instance-dir
  ```

* For IG running in standalone mode, specify the base location as an argument. The following example reads the configuration from the `config` directory under the instance directory:

  * Linux

  * Windows

  ```bash
  $ /path/to/identity-gateway-7.2.0/bin/start.sh $HOME/.openig
  ```

  ```windows
  C:\path\to\identity-gateway-7.2.0\bin\start.bat %appdata%\OpenIG
  ```

* For IG running in web container mode, set the `ig.instance.dir` Java system property to the full path of the base location. The following example starts Jetty in the foreground and sets the value of `ig.instance.dir`:

  ```bash
  $ java -Dig.instance.dir=/path/to/instance-dir -jar start.jar
  ```
