---
title: "Graylog"
product: "Axoflow 0.96"
url: "https://axoflow.com/docs/axoflow/destinations/graylog/"
description: "Add a Graylog destination to send your security data to the GELF HTTP input of Graylog, and look up the message fields it uses."
last_modified: "2026-11-11T13:42:56+01:00"
---

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

# Graylog

Add a Graylog destination to send your security data to the GELF HTTP input of Graylog, and look up the message fields it uses.

Graylog:
Log management and SIEM platform that parses and routes incoming events per input type.

Axoflow sends the data to a **GELF HTTP** input of Graylog, as GELF (Graylog Extended Log Format) messages. To add a Graylog destination to Axoflow, complete the following steps.

## Prerequisites

- A Graylog server that AxoRouter can reach.
- A **GELF HTTP** input in Graylog, with the **Enable Bulk Receiving** option turned on. Without bulk receiving, the input accepts only one GELF message per request, so you have to set the **Batch lines** option of the destination to `1`.
- If the input requires authorization, the name of the authorization header that the input expects (the **Authorization Header Name** option of the input), and its value.
- If the input uses TLS with a certificate that isn’t signed by a public CA, the CA certificate that signed the certificate of the Graylog server.

## Steps

1. Create a new destination.

   1. Open the AxoConsole.
   2. Select **Pipeline > Destinations > Add Destination > Destination**.
2. Configure the destination.

   1. Select **Graylog**.
   2. Select which type of configuration you want to use:

      - **Simple**: Enter the hostname and the port of the input. AxoRouter sends the data to the `/gelf` path of the input.
      - **Advanced**: Enter the full URL of the input. Use it if the input is behind a reverse proxy, or uses a custom path.
   3. Enter a name for the destination.
   4. Configure the endpoint of the destination.

      - **Simple**:
        1. Set **Schema** to the protocol to use to access the input: **HTTPS** or **HTTP**.
        2. Enter the **Hostname** of the input, for example, `graylog.example.net`.
        3. Enter the **Port** of the input. The default port of the **GELF HTTP** input is `12201`.
      - **Advanced**: Enter the URL of the input into the **GELF HTTP input URL** field, for example, `https://graylog.example.net:12201/gelf`

      ![Configure the Graylog destination](https://axoflow.com/docs/axoflow/destinations/graylog/graylog-destination_hu_17c8c4b51b1ca03c.webp)
   5. (Optional) If the input requires authorization, set the **Authorization header name** and the **Authorization header value** options. Set both of them, or neither.
   6. (Optional) Configure TLS for an `https` endpoint. In **Advanced** mode, turn on **Custom TLS settings** first. Otherwise, AxoRouter verifies the certificate of the server using the system CA certificates of the AxoRouter host.

      - **Verify server certificate**: Require the certificate of the Graylog server to be valid, and to match the hostname of the endpoint.

        By default, Axoflow rejects connections to the destination server if the certificate of the server is invalid (for example, it’s expired, signed by an unknown CA, or its CN and the name of the server is mismatched: the `Common Name` or the `subject_alt_name` parameter of the peer’s certificate must contain the hostname or the IP address (as resolved from AxoRouter) of the peer).

        > **Warning:**
        > When validating a certificate, the entire certificate chain must be valid, including the CA certificate. If any certificate of the chain is invalid, Axoflow will reject the connection.

        If you want to accept invalid certificates (or no certificate) from the destination servers, disable the **Verify server certificate** option.
      - **Server CA certificate**: The CA certificate that signed the certificate of the Graylog server. Leave it empty if a public CA signed the certificate.
      - **Client certificate** and **Client private key**: Set them if the input requires TLS client authentication. Set both of them, or neither.

      Paste the certificates and the key, or enter the path of the file that contains them.
   7. (Optional) Set other options as needed for your environments.

      - **Message format**: Axoflow sends every record as a GELF object, in its native shape (`Native`). For example, Windows event logs are sent in the shape that the Illuminate Windows content of Graylog expects.

        **CAUTION:**

        For some sources, Axoflow sends the parsed fields of the messages as additional GELF fields, without a source-specific prefix. If several sources write to the same Graylog index set, two sources can send a field with the same name but a different type, and Graylog can fail to index these messages. In this case, route the sources to separate index sets, for example, by using separate Graylog streams.
      - **Throttle**: The maximum number of messages per second that AxoRouter sends to the destination. Set it to `0`, or leave it empty, to disable throttling.
      - **Disk buffer**: Explicitly enable or disable disk buffer on AxoRouter. Default value: **Enabled**.

        AxoRouter can store messages on the local disk if the destination or the network connection to the destination becomes unavailable. AxoRouter automatically sends the stored messages (in the order they were received) to the destination when the connection is reestablished. Note that the disk buffer is separate from AxoStore.

        **Disk buffer size (per worker)**: The size of the disk buffer file of each worker, in MB or GB. Default value: 100 MB (104857600 bytes), which is also the recommended minimum.

        The disk required for using disk buffering is **Disk buffer size (per worker)** × **Number of Workers** for each destination of AxoRouter. The disk buffers of all destinations must fit on the disk of the AxoRouter. AxoConsole [alerts you](https://axoflow.com/docs/axoflow/onboard-hosts/alerts/alerts-reference/index.md#buffers-too-large)
        if the disk buffers can grow larger than the free disk space.
      - **Batch Size**: Sets the maximum size of payload in a batch. If the size of the messages reaches this value, AxoRouter sends the batch to the destination even if the number of messages is less than the value of the batch lines option.

        **CAUTION:**

        When setting **Batch Size**:

        - Note that the actual HTTP request will be about 4KB larger because of the request headers.
        - Check the configuration of your destination, as SaaS solutions and ingress controllers often limit the maximal size of HTTP requests. If the sum of **Batch Size** and the request headers exceeds this limit, the data will be rejected. (In case of NGINX, with a `client intended to send too large body` error message.)
      - **Batch Lines**: Number of lines sent to the destination in one batch. AxoRouter waits for this number of lines to accumulate and sends them off in a single batch. Increasing this number increases throughput as more messages are sent in a single batch, but also increases message latency.

        Note that **Initial window size** \* **Maximum Connections** must be greater or equal than **Batch lines** \* **Number of workers** for all the sources that feeds a given destination. Otherwise, the destination worker might be unable to send data until **Batch timeout** expires, even if there’s data available.

        For more details, see the [AxoSyslog documentation](https://axoflow.com/docs/axosyslog-core/chapter-destinations/configuring-destinations-http-nonjava/reference-destination-http-nonjava/#batch-lines)
        .
      - **Batch Timeout**: Maximal time in milliseconds to wait for a batch to be filled before sending it. The default value (`-1`) means that the batch should be full before sending, which may result in a long wait if the incoming traffic is low.

        For more details, see the [AxoSyslog documentation](https://axoflow.com/docs/axosyslog-core/chapter-destinations/configuring-destinations-http-nonjava/reference-destination-http-nonjava/#batch-timeout)
        .
      - **Content compression**: Specifies the compression to use when sending data to the destination. `No compression` explicitly disables compression. Other possible values: `Gzip`, `Deflate`. Select only compression that your destination supports and has enabled. Default value: `No compression`
      - **Number of retries**: The number of retry attempts when the retry action is triggered. Default: `3`.

        For more details, see the [AxoSyslog documentation](https://axoflow.com/docs/axosyslog-core/chapter-destinations/configuring-destinations-http-nonjava/reference-destination-http-nonjava/#retries)
        .
      - **Time to reopen**: The time to wait before reconnecting when a connection fails. Default: `1` second.

        For more details, see the [AxoSyslog documentation](https://axoflow.com/docs/axosyslog-core/chapter-destinations/configuring-destinations-http-nonjava/reference-destination-http-nonjava/#time-reopen)
        .
      - **Timeout**: How long to wait for a log-forwarding request to complete. If the timeout is exceeded, AxoRouter attempts to reconnect the destination. The default (`0`) is unlimited.

        For more details, see the [AxoSyslog documentation](https://axoflow.com/docs/axosyslog-core/chapter-destinations/configuring-destinations-http-nonjava/reference-destination-http-nonjava/#http-options-timeout)
        .
      - **Number of Workers**: Used for scaling the destination in case of high message load. Specifies the number of worker threads AxoRouter uses for sending messages to the destination. The default is 1. If high message throughput is not a concern, leave it on 1. For maximum performance, increase it up to the number of CPU cores available on AxoRouter.

        For more details, see the [AxoSyslog documentation](https://axoflow.com/docs/axosyslog-core/chapter-destinations/configuring-destinations-http-nonjava/reference-destination-http-nonjava/#workers)
        .
      - **Response actions**: Specifies what AxoRouter does with the log message, based on the response code received from the destination.

        - If the status code begins with 2 (for example, `200`), AxoRouter assumes the message was successfully sent.
        - If you’ve configured a custom action in AxoConsole for the status code, AxoRouter performs the specified action.
        - If the status code appears in the [default response actions table](https://axoflow.com/docs/axoflow/destinations/graylog/index.md#default-actions)
          , AxoRouter performs the specified action.
        - For other status codes, AxoRouter disconnects.

        To add a custom response action, select **Add new action**, then enter the **HTTP status code** and the related **Action**. The following actions are available:

        - **Disconnect**: Keep trying to resend the message indefinitely.
        - **Drop**: Drop the message without trying to resend it.
        - **Retry**: Retry sending the message for a maximum of 3 times.
        - **Success**: Assume the message was successfully sent.Show default actions

      | code | explanation | action |
      | --- | --- | --- |
      | 100 | “Continue” | disconnect |
      | 101 | “Switching Protocols” | disconnect |
      | 102 | “Processing” | retry |
      | 103 | “Early Hints” | retry |
      | 200 | “OK” | success |
      | 201 | “Created” | success |
      | 202 | “Accepted” | success |
      | 203 | “Non-Authoritative Information” | success |
      | 204 | “No Content” | success |
      | 205 | “Reset Content” | success |
      | 206 | “Partial Content” | success |
      | 300 | “Multiple Choices” | disconnect |
      | 301 | “Moved Permanently” | disconnect |
      | 302 | “Found” | disconnect |
      | 303 | “See Other” | disconnect |
      | 304 | “Not Modified” | retry |
      | 307 | “Temporary Redirect” | disconnect |
      | 308 | “Permanent Redirect” | disconnect |
      | 400 | “Bad Request” | disconnect |
      | 401 | “Unauthorized” | disconnect |
      | 402 | “Payment Required” | disconnect |
      | 403 | “Forbidden” | disconnect |
      | 404 | “Not Found” | disconnect |
      | 405 | “Method Not Allowed” | disconnect |
      | 406 | “Not Acceptable” | disconnect |
      | 407 | “Proxy Authentication Required” | disconnect |
      | 408 | “Request Timeout” | disconnect |
      | 409 | “Conflict” | disconnect |
      | 410 | “Gone” | drop |
      | 411 | “Length Required” | disconnect |
      | 412 | “Precondition Failed” | disconnect |
      | 413 | “Payload Too Large” | disconnect |
      | 414 | “URI Too Long” | disconnect |
      | 415 | “Unsupported Media Type” | disconnect |
      | 416 | “Range Not Satisfiable” | drop |
      | 417 | “Expectation Failed” | disconnect |
      | 418 | “I’m a teapot” | disconnect |
      | 421 | “Misdirected Request” | disconnect |
      | 422 | “Unprocessable Entity” | drop |
      | 423 | “Locked” | disconnect |
      | 424 | “Failed Dependency” | drop |
      | 425 | “Too Early” | drop |
      | 426 | “Upgrade Required” | disconnect |
      | 428 | “Precondition Required” | retry |
      | 429 | “Too Many Requests” | disconnect |
      | 431 | “Request Header Fields Too Large” | disconnect |
      | 451 | “Unavailable For Legal Reasons” | drop |
      | 500 | “Internal Server Error” | disconnect |
      | 501 | “Not Implemented” | disconnect |
      | 502 | “Bad Gateway” | disconnect |
      | 503 | “Service Unavailable” | disconnect |
      | 504 | “Gateway Timeout” | retry |
      | 505 | “HTTP Version Not Supported” | disconnect |
      | 506 | “Variant Also Negotiates” | disconnect |
      | 507 | “Insufficient Storage” | disconnect |
      | 508 | “Loop Detected” | drop |
      | 510 | “Not Extended” | disconnect |
      | 511 | “Network Authentication Required” | disconnect |

      > **Note:**
      > If a batch is larger than the maximum message size of the input (the **Max. chunk size** option of the input, 64 KB by default), the input rejects the whole batch with a `413` response, and the messages of the batch are dropped. Set **Batch Size** below the maximum message size of the input.
3. Create a [flow](https://axoflow.com/docs/axoflow/data-management/index.md) to connect the new destination to an [AxoRouter instance](https://axoflow.com/docs/axoflow/provisioning/axorouter/index.md).
   1. Select **Pipeline > Routers > Flows**.
   2. Select **Add Flow > Flow**.

      To create a [fallback flow](https://axoflow.com/docs/axoflow/data-management/flow-overview/index.md#fallback-flow)
      , select **Add Flow > Fallback flow**.

      ![Add flow](https://axoflow.com/docs/axoflow/img/data-management/flow-management/flows/add-flow_hu_61d54ad6eed58d2a.webp)
   3. Enter a name for the flow, for example, `my-test-flow`.

      ![Create a flow](https://axoflow.com/docs/axoflow/img/data-management/flow-management/flows/create-flow_hu_745fe874d5a4d017.webp)
   4. In the **Router Selector** field, enter an expression that matches the routers you want to apply the flow to. To select a specific router, use a name selector, for example, `name = my-axorouter-hostname`.

      You can use any labels and metadata of the AxoRouter hosts in the Router selectors, for example, the hostname of the AxoRouter, or any [custom labels](https://axoflow.com/docs/axoflow/onboard-hosts/hosts/add-host-metadata/index.md)
      .

      - If you leave the router selector empty, it matches every AxoRouter instance.
      - To select only a specific AxoRouter instance, set the `name` field to the name of the instance as selector. For example, `name = my-axorouter`.
      - If you set multiple fields in the selector, the selector will match only AxoRouter instances that match all elements of the selector. (There in an AND relationship between the fields.)
      > **Note:**
      > You can configure multiple fallback flows, but only one fallback flow can apply to an AxoRouter (so the **Router Selector** of the fallback flows can’t overlap).
   5. Select the **Destination** where you want to send your data. If you don’t have any destination configured, you can select **Add Destination** in the destination section to create a new destination now. For details on the different destinations, see [Destinations](https://axoflow.com/docs/axoflow/destinations/index.md).

      - If you don’t have any destination configured, see [Destinations](https://axoflow.com/docs/axoflow/destinations/index.md).
      - If you’ve already created a [store](https://axoflow.com/docs/axoflow/destinations/axostore/index.md)
        , it’s automatically available as a destination. Note that the **Router Selector** of the flow must match only AxoRouters that have the selected store available, otherwise you’ll get an error message.
      - If you want to send data to another AxoRouter, enable the **Show all destinations** option, and select the connector of the AxoRouter where you want to send the data.

      ![The destination list with the AxoRouter connectors shown](https://axoflow.com/docs/axoflow/img/data-management/flow-management/flows/axorouter-destination_hu_e18a4eb9c2f8594f.webp)
   6. (Optional) To process the data transferred in the flow, select **Add New Processing Step**. For details, see [Processing steps](https://axoflow.com/docs/axoflow/data-management/processing/index.md). For example:

      1. Add a **Classify**, a **Parse**, and a **Reduce** step, in that order, to automatically remove redundant and empty fields from your data.
      2. To select which messages are processed by the flow, add a **Select Messages** step, and enter a filter into the **AQL Expression** field. For example, to select only the messages received from Fortinet FortiGate firewalls, use the `meta.vendor = fortinet AND meta.product = fortigate` query.

      ![Example processing steps](https://axoflow.com/docs/axoflow/img/data-management/flow-management/flows/processing/example-processing-steps_hu_3222857acbd6072c.webp)
   7. Select **Add**, then confirm with **Add**. To save the flow without provisioning it to the routers yet, select **Add as draft** instead.
   8. The new flow appears in the **Flows** list.

      ![The new flow](https://axoflow.com/docs/axoflow/img/data-management/flow-management/flows/new-flow_hu_e7eb57b794acfb1b.webp)

## Related message fields

You can use the [following message fields](https://axoflow.com/docs/axoflow/reference/message-schema/reference/index.md#meta.destination.graylog)
to modify messages sent to this destination using [processing steps](https://axoflow.com/docs/axoflow/data-management/processing/index.md)
.

## Troubleshooting

If the data doesn’t arrive at the destination, see [the data doesn’t reach the destination](https://axoflow.com/docs/axoflow/troubleshoot/index.md#data-missing)
. To find the errors that the destination returns, see [the destination rejects the data](https://axoflow.com/docs/axoflow/troubleshoot/index.md#destination-errors)
. For other problems, see [Troubleshooting](https://axoflow.com/docs/axoflow/troubleshoot/index.md).
