# strlen()

## Purpose

strlen(str)

Returns the length of the provided string.

## Examples

In the following example returns the length of the message string.

    strlen($msg)

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.