# \[FAQ\] Forwarding Logs from a Specific Application to Logstash in io.Connect Desktop

**URL:** <https://community.interop.io/t/faq-forwarding-logs-from-a-specific-application-to-logstash-in-io-connect-desktop/565>\
**Category:** io.Connect Desktop\
**Tags:** FAQs\
**Created:** [April 24, 2026, 7:06am UTC](https://community.interop.io/t/faq-forwarding-logs-from-a-specific-application-to-logstash-in-io-connect-desktop/565 "2026-04-24T07:06:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![toni.petrov](https://yyz2.discourse-cdn.com/flex028/user_avatar/community.interop.io/toni.petrov/32/17_2.png) [@toni.petrov](https://community.interop.io/u/toni.petrov)\
**Post date:** [April 24, 2026, 7:06am UTC](https://community.interop.io/t/faq-forwarding-logs-from-a-specific-application-to-logstash-in-io-connect-desktop/565/1 "2026-04-24T07:06:19Z")

</div>

* * *

## Question

### How do I forward logs from only one specific application to Logstash or another log collector, without forwarding logs from all applications?

Log4js does not support filtering individual files within a `multiFile` appender. If you want to add e.g. `logstash` to the `app-own-log` category (the category used by the `multiFile` appender), **all** application logs in the `logs/applications/` directory are forwarded to Logstash, including noisy applications you may not want to ship.

* * *

## Solution

### Create a Dedicated Category for the Specific Application

You can create a separate Log4js category that matches the application name. This category includes both the `multiFile` appender (so logs still go to the file system) and the `logstash` appender (so logs are also forwarded to Logstash). All other applications remain in the `app-own-log` category with file-only logging.

In the logging configuration, add a new category named after the target application:

```json
"categories": {
    "default": {
        "appenders": ["out", "app", "logstash"],
        "level": "info"
    },

    "app-own-log": {
        "appenders": ["applications"],
        "level": "info"
    },

    "mlp-launchpad-toolbar": {
        "appenders": ["applications", "logstash"],
        "level": "info"
    }
}

```

Inside the application, create a sub-logger with the matching name:

```js
io.logger.subLogger("app1").publishLevel("info");

```

With this setup, only `app1.log` will be sent to Logstash, while all other application logs remain on the local file system only.

> Creating a sub-logger win’t disable the interception of console messages, unhandled errors, or network request errors. These are captured globally by io.Connect Desktop and still flow into the logger pipeline as before. The interception settings configured in the app definition under `"details"` \> `"logging"` (such as `consoleMessages`, `networkRequestErrors`, and `unhandledErrors`) remain fully active.

###
