# cstr()

## Purpose

cstr(expr)

Converts expr to a string value.

## Example

In the following example a string is created from the expression.

    cstr(5*4);

produces

    "20"

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.