---
title: "Configuring multithreading"
url: "https://axoflow.com/docs/axosyslog-core/4.28/chapter-multithreading/configuring-multithreading/"
last_modified: "2023-07-02T20:37:04+02:00"
---

> For the complete documentation index, see [llms.txt](https://axoflow.com/docs/axosyslog-core/4.28/llms.txt).

# Configuring multithreading

Starting with version 3.6, AxoSyslog runs in multithreaded mode by default. You can enable multithreading in AxoSyslog using the following methods:

- Globally using the `threaded(yes)` option.
- Separately for selected sources or destinations using the `flags("threaded")` option.

## Example: Enabling multithreading

To enable multithreading globally, use the `threaded` option:

```shell
   options {
        threaded(yes) ;
    };
```

To enable multithreading only for a selected source or destination, use the `flags("threaded")` option:

```shell
   source s_tcp_syslog {
        network(
            ip(127.0.0.1)
            port(1999)
            flags("syslog-protocol", "threaded")
        );
    };
```

Last modified July 2, 2023: [Change highlight mode of code examples (2f8a9593)](https://github.com/axoflow/axosyslog-core-docs/commit/2f8a95937c6498193e7168ce8b0dc831e9f0f8ad)
