AI-based classification (mmaitag)¶
================ ================================ Module Name: mmaitag Author:: Adiscon Available:: 9.0+ ================ ================================
Purpose¶
The mmaitag module enriches log messages with classification tags obtained from an external AI service. Each message is sent to the provider individually and the resulting tag is stored in a custom variable.
Default labels¶
Configuration Parameters¶
provider
: which backend to use (gemini
orgemini_mock
)tag
: message variable name for the classificationmodel
: AI model identifier (provider specific)expert.initial_prompt
: optional custom prompt text. If unset, the following default is used:You are a tool that classifies log messages. Given an array of log messages, respond with a JSON array of labels: 'NOISE', 'REGULAR', 'IMPORTANT', or 'CRITICAL' — one per message, in order. Do not include explanations or additional formatting.
inputproperty
: which message property to classifyapikey
: API key for the providerapikey_file
: file containing the API key
Example¶
module(load="mmaitag")
action(type="mmaitag" provider="gemini" apikey="ABC" tag="$.aitag")
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.