iam-collect is configured using a JSON file. JSONC is supported so you can include comments.
To create a default configuration file, run:
iam-collect initThis will create a file called iam-collect.jsonc in the current directory with a simple default configuration and many comments on how to customize the configuration.
The default configuration file is iam-collect.jsonc in the current directory you are running in. iam-collect will look for this file by default, and if it is present, you do not need to specify a config.
You can use the --config-files option to specify a configuration file or multiple configuration files. The files will be merged together, with the last file taking precedence in case of conflicts.
Take a look at the authentication, filtering, and storage docs for more information on how to customize behavior using the configuration file.