# apiKeyFile

Specifies a file containing the API key for the provider.

This parameter applies to AI-based classification (mmaitag).

Name:

  apiKeyFile

Scope:

  action

Type:

  string

Default:

  none

Required?:

  no (either apiKey or `apiKeyFile` must be set)

Introduced:

  9.0.0

## Description

File containing the API key for the provider. If apiKey is not set, the module reads the first line of this file and uses it as the API key.

## Action usage

    action(type="mmaitag" apiKeyFile="/path/to/keyfile")

## See also

- AI-based classification (mmaitag)

Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project

Contributing: Source & docs: rsyslog source project

© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.