1704 Commits

Author SHA1 Message Date
Ulrike Gerhards
357344e0ce
omsnmp: restructure (#6063)
split omsnmp doc into multiple pages for easier ingestion, following the new approach to presenting the doc.
2025-09-02 18:21:39 +02:00
Rainer Gerhards
ecc1c6b931 doc: work around a spellcheck restriction
spellcheck does not properly identfy variable name, so we change it
it a non-conflicting name. Also corrects a duplicate lookup.
2025-08-28 11:00:57 +02:00
Rainer Gerhards
3e73fb69fd
Merge pull request #6044 from UGerhards/codex/fix-typos-in-documentation-files
Codex/fix typos in documentation files
2025-08-28 10:02:05 +02:00
Ulrike Gerhards
b82f1dcbfd doc: note AI authorship\n\nAI-Agent: ChatGPT 2025-08-28 09:33:45 +02:00
Rainer Gerhards
25a633afb4
Merge pull request #5994 from anis-bougrine/add-namespace-support-for-omjournal
Add namespace support for omjournal
2025-08-28 08:31:07 +02:00
Ulrike Gerhards
a76cf54036 doc: fix assorted typos across documentation 2025-08-27 17:56:33 +02:00
Madhushree
8f4df7a334
docs: fix minor typos in docs/source (#6028)
- fixed typos, corrected small text issues, and adjusted minor wording in messageparser.rst and multi_ruleset.rst.
- removing second 'be' & changing the verb form from activate to activates.

Only updates to documentation files (.rst, .md, .txt) for minor fixes. No source code or runtime behavior is affected.
2025-08-27 14:12:14 +02:00
Naisthecreator
d835987604
docs: fix typo ('begin' -> 'beginning') in developer documentation (#6029) 2025-08-27 11:23:50 +02:00
Rainer Gerhards
0c87fb4057
prepare for next scheduled stable release cycle 2025-08-26 11:45:08 +02:00
Rainer Gerhards
813460390f
prepare for daily stable 8.2508.0 release 2025-08-25 17:10:56 +02:00
Rainer Gerhards
4c086ed78c
omsendertrack: stop towards full completion of module.
Work towards full completion of the module’s interface as it exits PoC.
The new name senderid (formerly: template) matches intent (identify a
sender, not an output format) and avoids confusion.  Also make state
persistence safer via atomic writes.

Merged a bit pre-completion in order to get a static analyzer fix
into the main code base. Some additional cleanup PR will follow.
State is much cleaner now than in PoC.

Impact: Configs must use senderid=; statefile is now required. Tests
and docs updated.

Before/After: action(... template="name") -> action(... senderid="name").

Technical details:
- Replace the config parameter and instance field; drop legacy template
  parsing in parseSelectorAct. The module now reads only senderid=.
- Enforce required statefile (descriptor + runtime) and cache a temp
  path "<statefile>.tmp" to ensure rename() is atomic. Provide a
  one-time fallback build if the cache is missing (e.g., reload flow).
- Add built-in template "StdOmSenderTrack-senderid" yielding
  "%fromhost-ip%" and use it as the default senderid template.
- Improve memory ownership (free cached temp path/default template) and
  keep existing locking/queue semantics unchanged.
- Update tests to use senderid= and prune PoC doc note accordingly.

see also: https://github.com/rsyslog/rsyslog/issues/5599
2025-08-25 15:51:58 +02:00
anis
564f9f8ce6 Feature: Add journald namespace feature to omjournal.
Starting from systemd V256, systemd API supports writing to journal
in a specific namespace.
2025-08-24 11:22:31 +02:00
Rainer Gerhards
b5d7bd7a4d doc: restore property statement context 2025-08-21 19:11:05 +02:00
Rainer Gerhards
97c7a8ad31 doc: restructure templates docs into hub and refs
Split monolithic templates doc into hub and ten reference pages.
Normalize parameter casing to lowerCamelCase and modernize cross references.
Add summary include blocks and table navigation.

AI-Agent: ChatGPT
2025-08-21 18:20:58 +02:00
Rainer Gerhards
43cb156744
omprog: split parameter docs into reference pages
Make omprog docs easier to navigate and link while improving structure
for AI tooling and programmatic ingestion. This aids both humans and
assistants in finding a single parameter quickly with stable anchors.

BEFORE: All action parameters lived inline in modules/omprog.rst.
AFTER: Each parameter has its own reference page; omprog.rst shows a
       list-table with concise summaries and a hidden toctree.

Technically, move each action parameter into
doc/source/reference/parameters/omprog-*.rst with stable anchors
(param-omprog-* and omprog.parameter.action.*), a summary block,
metadata (type/default/introduced), usage snippets, and legacy
directive mappings. The module page now pulls per-parameter summaries
via include directives and adds a hidden toctree for discovery.
Cross-references were aligned, legacy names preserved (e.g.
$ActionOMProgBinary), and a non-normative note recommends camelCase
for readability. No runtime or API/ABI changes; documentation only.

With help from AI coding Agents: codex, Gemini
see also: https://github.com/rsyslog/rsyslog/issues/5933
2025-08-20 14:50:08 +02:00
Rainer Gerhards
df9dc9be1c
Merge pull request #5977 from rsyslog/codex/refactor-documentation-for-module-parameters
imuxsock: split input parameter docs into reference pages
2025-08-19 15:54:31 +02:00
Rainer Gerhards
b0f368f39c
Merge pull request #5980 from rgerhards/docai
doc: make AI-First concrete; add guardrails and CI proof
2025-08-19 15:19:59 +02:00
Rainer Gerhards
1324f0b7e4
imuxsock: tidy parameter docs and links
Fix broken omjournal reference in IgnoreOwnMessages.\nClarify SysSock.ParseTrusted version history.\nRemove stray blank lines in Legacy names sections to avoid Sphinx warnings.\n\nAI-Agent: ChatGPT
2025-08-19 13:48:08 +02:00
Rainer Gerhards
d6a04c16bf
doc: make AI-First concrete; add guardrails and CI proof
This turns the AI-First vision from words into verifiable practice.
It documents how we apply AI responsibly and shows the checks that
protect users, contributors, and releases.

Before: high-level narrative with few proofs.
After: structured principles plus Golden Path, Guardrails, Safeguards,
and CI gates users can verify.

The page is renamed to "AI-First (Human-Controlled)" and reorganized
with Sphinx anchors, index terms, and meta fields for better retrieval.
It adds Golden Path guidance (low-friction, good-default workflows) and
explicit Guardrails (style, structure, commit/PR templates, provenance).
It then lists concrete Safeguards that actually gate PRs and releases:
multi-distro builds, sanitizers, distcheck, coverage, CodeQL, and
selective workflows, including file paths to GitHub Actions. Buildbot
is noted for extended checks. A "Visible Artifacts" section shows how
contributors can observe the process (assistants, reviewer bot, docs
metadata). Roles, operational rules, and a change log round out the
page. No runtime or ABI changes.

This update aims to improve trust and maintainability by making the
responsible AI approach inspectable and reproducible across time.
2025-08-19 13:19:19 +02:00
Rainer Gerhards
50edb1de72 imuxsock: split input parameter docs into reference pages 2025-08-18 20:02:21 +02:00
Rainer Gerhards
ca0eaeee3f doc/imfile: add File and Tag to parameter samples 2025-08-18 18:27:14 +02:00
Rainer Gerhards
a25ccfdf0f
fix typo 2025-08-18 09:45:27 +02:00
Rainer Gerhards
fa3bf2ae61
docs: split imfile module parameters (#5941)
With help of AI-Agent: ChatGPT
2025-08-18 09:34:35 +02:00
Rainer Gerhards
d0a0305028
imptcp: split parameter docs into reference pages
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2025-08-18 08:42:46 +02:00
Rainer Gerhards
c912509f7c
doc: add per-container docker pages with env defaults (#5960)
Improve rsyslog docker container documentation by describing the user-facing containers and their settings.
2025-08-17 15:20:21 +02:00
Rainer Gerhards
78bd61d23a
docs: rewrite container section with current images
replace outdated container docs with descriptions of user-focused images and development/CI containers; update install instructions to point to new content.

AI-Agent: ChatGPT
2025-08-17 13:18:45 +02:00
Rainer Gerhards
d1a05cd658
Update doc/source/conf.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-08-16 12:55:41 +02:00
Rainer Gerhards
c81669240f
doc: set html_baseurl to emit canonical tags
Add html_baseurl to Sphinx config; set to
'https://www.rsyslog.com/doc/'.
Sphinx will add a canonical link per page, reducing duplicate
content in search and consolidating ranking.

The URL matches the production docs root (trailing slash kept). No
behavior change for local/offline builds.
2025-08-16 12:51:33 +02:00
Rainer Gerhards
10604273a6
Merge pull request #5953 from rgerhards/warn-unofficial
doc: warn against unofficial and outdated doc clones
2025-08-16 10:44:16 +02:00
Rainer Gerhards
1b56b8e0de
doc: warn against unofficial and outdated doc clones
These cause mayor confusion for rsyslog users. Ensure they know
the need to go to the source.

This is probabaly only an interim solution until we have found
better ways to address the core issue.
2025-08-16 10:18:04 +02:00
Rainer Gerhards
135f2c08b3
doc: omkafka SASL-from-env example + backticks doc overhaul
- omkafka.rst: add “Set SASL password from an environment variable”
  section with two paths:
  * v8.2508.0+: inline `${VAR}` with adjacency via backticks
    (`echo sasl.password=${KAFKA_PASSWORD}`)
  * pre-8.2508.0: pre-compose `SASL_PWDPARAM` and echo that
- Clarify security notes (env files, /proc visibility) and add anchor
  label :ref:`omkafka-sasl-password-from-env`
- constant_strings.rst: restructure and expand
  * document `${VAR}` support, unbraced `$VAR` termination rules, and
    adjacency to static text (v8.2508.0)
  * keep scope explicit: only `echo`/`cat`, no `$(...)`
  * add clear examples and use `rsyslog` lexer for code blocks
  * add compatibility guidance for older versions
  * add note: backticks can toggle boolean flags such as `config.enabled`
- Motivation: addresses confusion seen in omkafka SASL cases (e.g. #5827)

No behavioral changes to code; documentation only.
2025-08-16 10:01:53 +02:00
Rainer Gerhards
99f70c1a5a
Merge pull request #5832 from rsyslog/codex/analyze-and-implement-feature-from-issue-5830
Enhance backticks with ${VAR} support
2025-08-15 17:09:12 +02:00
Rainer Gerhards
89b8acf301
imtcp: fix parameter scopes and add input examples
- remove duplicate case-insensitivity note\n- clarify AddtlFrameDelimiter description\n- document module+input scope and usage for flowControl, keepAlive, and related parameters\n\nAI-Agent: ChatGPT
2025-08-15 16:09:31 +02:00
Rainer Gerhards
13ca403ea0
rainerscript: backticks support ${VAR} and adjacent text
This implements brace-style env vars inside backticks with `echo` and
fixes termination of unbraced `$VAR`. Most importantly, variables can
now be adjacent to static text (e.g., `foo${ENV}bar`), which previously
did not work and caused confusion. This aligns behavior with common
bash expectations.

Why
- Users expect `${VAR}` and `$VAR!` to expand while keeping punctuation.
- Concatenations like `foo${ENV}bar` are common and should be valid.

What
- Add support for braced variables `${VAR}` with proper `}` handling.
- For unbraced `$VAR`, stop the name at the first non `[A-Za-z0-9_]`
  char and emit that char (e.g., `!`, `.`) as literal output.
- Improve error handling for overlong env var names.
- Keep other shell features (e.g., `$(pwd)`) unsupported by design.

Docs
- Update `constant_strings.rst` to document `${VAR}`, the new
  termination rules, and examples including `foo${ENV}bar` and `$VAR!`.

Tests
- Add `rscript_backticks_braces_envvar.sh` for `${VAR}` support.
- Add `rscript_backticks_static_text.sh` for `$VAR!` and adjacency.
- Convert `rscript_backticks_empty_envvar-vg.sh` to non-VG variant and
  adjust `tests/Makefile.am`.

Compatibility
- Backward compatible. Changes affect only previously broken edge cases.

Misc
- Refresh lexer copyright years.
2025-08-15 14:43:41 +02:00
Rainer Gerhards
19966b728b imtcp: split input parameter docs into reference pages 2025-08-15 14:27:05 +02:00
Rainer Gerhards
ee1ae06080
Merge pull request #5932 from rsyslog/codex/fix-reverse-dns-cache-ttl-issues
doc: clarify reverse DNS cache TTL parameters
2025-08-14 14:07:18 +02:00
Rainer Gerhards
d5c2f2cea1
doc: split imudp parameter docs 2025-08-14 13:58:29 +02:00
Rainer Gerhards
d4ea86aaae doc: increase visibility of reverse DNS cache controls 2025-08-13 19:19:27 +02:00
Rainer Gerhards
2128c9be62 doc: clarify reverse DNS cache scope
Explain that TTL settings only affect reverse lookups for inbound messages. Forward lookups for outbound connections rely on the system resolver and are not cached. Remove ChangeLog entry per project policy.

AI-Agent: ChatGPT
2025-08-13 18:27:17 +02:00
Rainer Gerhards
8b65504159 chore: document AI-generated changes
AI-Agent: ChatGPT
2025-08-13 17:03:29 +02:00
Rainer Gerhards
4aefb9ad2a
AI support: update meta info on ommysql after patches 2025-08-13 13:52:43 +02:00
Rainer Gerhards
32f504605b
doc: add v8 locking note
Add "Concurrency & Locking" to dev_action_threads.rst:
multiple workers per action; WID is per-worker; shared pData must be
mutex/rwlock-protected; direct mode still needs module-side serialization
for inherently serial resources.
2025-08-13 11:25:15 +02:00
Rainer Gerhards
04dad1a9dc
Merge pull request #5913 from alorbach/doc-add-dev_action_threads
docs: add developer page "Action Threads and Queue Engine"
2025-08-13 11:11:19 +02:00
Cursor Agent
4287b8c469
docs: add developer page "Action Threads and Queue Engine"
Introduce a new developer-oriented documentation page:
File: doc/source/development/dev_action_threads.rst
Content:
- End-to-end overview of the rsyslog queue engine (producers → rulesets → actions)
- Terminology
- Mermaid flowchart for thread and queue topology
- State diagram for watermarks/backpressure
- Sequence diagram for action-queue lifecycle
- Error handling (retry/suspend) and shutdown behavior
- Queue types and selection guidance
- Key queue parameters and cross-references

Motivation:

Provide a single, high-signal reference for contributors to understand the queue engine and action worker model, with visualizations to aid comprehension.
Update dev_queue.rst with note about outdated content and reference to dev_action_threads

Co-authored-by: alorbach <alorbach@adiscon.com>
2025-08-13 11:08:21 +02:00
Rainer Gerhards
a5ff9048dd
Merge pull request #5924 from rsyslog/codex/restructure-rsyslog-docs-for-omelasticsearch-module
docs: split omelasticsearch params into individual pages
2025-08-13 10:27:30 +02:00
Rainer Gerhards
09445fa6ad
docs: split omelasticsearch parameters into dedicated reference pages
Refactored omelasticsearch.rst by moving each parameter description
into its own file under doc/source/reference/parameters/, one per
parameter. Each new page contains:

- Standardized metadata (Name, Scope, Type, Default, Required?, Introduced)
- Concise summary block for inclusion in the overview table
- Verified and clarified type information
- Usage examples for module/action contexts
- Legacy or alternate name mappings where applicable

Updated omelasticsearch.rst to present a list-table with :ref: links
and inline summaries for all parameters, plus a hidden toctree linking
to the new reference pages.

This change brings omelasticsearch documentation in line with the
structured parameter format adopted for other modules, improving
maintainability, readability, and navigation for both human users and
AI systems.

No functional changes; documentation only.
2025-08-13 10:23:49 +02:00
Rainer Gerhards
8577432d89
Merge pull request #5923 from rgerhards/doc-pmrfc3164
docs: split pmrfc3164 parameters into structured reference pages
2025-08-13 10:14:21 +02:00
Rainer Gerhards
8bf57f6633
docs: split pmrfc3164 parameters into structured reference pages
Refactored pmrfc3164.rst to move individual parameter descriptions into
dedicated files under doc/source/reference/parameters/, one per parameter.
Each new page contains:

- Consistent metadata (Name, Scope, Type, Default, Required?, Introduced)
- Concise summary blocks for inclusion in overview tables
- Corrected and clarified type info (boolean/string)
- Usage examples for parser configuration
- Legacy/alternate name mappings

pmrfc3164.rst now presents parameters via a list-table with :ref: links
and inline summaries, plus a hidden toctree for the new reference pages.

This brings pmrfc3164 documentation in line with the structured parameter
format used in other modules, improving maintainability, readability,
and navigation.

No functional changes; documentation only.
2025-08-13 10:09:00 +02:00
Rainer Gerhards
e3e3ee565f
docs: split imjournal parameter docs into dedicated reference pages
Refactored imjournal.rst to move detailed parameter descriptions into
individual files under doc/source/reference/parameters/, one file per
parameter. Each page now includes:

- Consistent metadata (Name, Scope, Type, Default, Required?, Introduced)
- Concise summary blocks for list-table inclusion
- Updated and clarified type information (boolean/string/integer)
- Corrected legacy/obsolete name mappings
- Usage examples for module and input scopes

imjournal.rst now uses list-tables with :ref: links to these pages and
includes summaries inline for quick scanning. This aligns imjournal’s
documentation structure with other modules, improves maintainability,
and enhances reusability for AI-assisted and human navigation.

No code changes; documentation only.

With support from AI agents: Codex, Gemini
2025-08-13 10:00:19 +02:00
Rainer Gerhards
d436497c1e
Merge pull request #5920 from rgerhards/action-flow-step1
doc: reference AI module map in AGENTS.md and DEVELOPING.md
2025-08-12 18:21:01 +02:00