---
title: "stomp: Publish messages using STOMP"
url: "https://axoflow.com/docs/axosyslog-core/4.28/chapter-destinations/configuring-destinations-stomp/"
last_modified: "2026-08-02T11:39:11+02:00"
---

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

# stomp: Publish messages using STOMP

The `stomp()` driver sends messages to servers (message brokers) using the [Simple (or Streaming) Text Oriented Message Protocol (STOMP)](http://stomp.github.io/), formerly known as TTMP. AxoSyslog supports version 1.0 of the STOMP protocol. The AxoSyslog `stomp()` driver supports persistence.

The name-value pairs selected with the `value-pairs()` option will be sent as STOMP headers, while the body of the STOMP message is empty by default (but you can add custom content using the `body()` option). Publishing the name-value pairs as headers makes it possible to use the Headers exchange-type and subscribe only to interesting log streams.

For the list of available parameters, see [stomp() destination options](https://axoflow.com/docs/axosyslog-core/4.28/chapter-destinations/configuring-destinations-stomp/reference-destination-stomp/index.md).

## Prerequisites

On [Debian/Ubuntu](https://axoflow.com/docs/axosyslog-core/4.28/install/debian-ubuntu/index.md), this feature is available in a separate module: install the `axosyslog-mod-stomp` package. On [RHEL and compatible distributions](https://axoflow.com/docs/axosyslog-core/4.28/install/rhel-fedora-almalinux/index.md), it’s part of the `axosyslog` base package. If the module isn’t installed, AxoSyslog fails to start with an [`unexpected LL_IDENTIFIER` error](https://axoflow.com/docs/axosyslog-core/4.28/chapter-troubleshooting-syslog-ng/unexpected-ll-identifier/index.md).

## Declaration:

```shell
   stomp( host("<stomp-server-address>") );
```

## Example: Using the stomp() driver

The following example shows the default values of the available options.

```shell
   destination d_stomp {
        stomp(
            host("localhost")
            port(61613)
            destination("/topic/syslog")
            body("")             # optional, empty by default
            persistent(yes)
            ack(no)
            username("user")     # optional, empty by default
            password("password") # optional, empty by default
            value-pairs(scope(selected-macros, nv-pairs, sdata))
        );
    };
```

---

[stomp() destination options](https://axoflow.com/docs/axosyslog-core/4.28/chapter-destinations/configuring-destinations-stomp/reference-destination-stomp/index.md)

Last modified August 2, 2026: [Adds required modules/packages to install and destination pages (553d6d9b)](https://github.com/axoflow/axosyslog-core-docs/commit/553d6d9be9a0e3ef444e62cc5351dd2ac764f01d)
