# Making Docker container logs go through the right beats module for processing?

**URL:** <https://discuss.elastic.co/t/making-docker-container-logs-go-through-the-right-beats-module-for-processing/312126>\
**Category:** Elastic Agent\
**Tags:** filebeat\
**Created:** [August 15, 2022, 9:11pm UTC](https://discuss.elastic.co/t/making-docker-container-logs-go-through-the-right-beats-module-for-processing/312126 "2022-08-15T21:11:29Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [August 27, 2022, 2:47am UTC](https://discuss.elastic.co/t/making-docker-container-logs-go-through-the-right-beats-module-for-processing/312126/9 "2022-08-27T02:47:03Z")

</div>

It will change with the Agent Version Number I believe... When you update the agent... I believe

Apache does not change that often it is pretty static...

> [@jerrac](#):
>
> Is there a way for me to manually do what you described?

🙂 That is what I described 🙂

You could just create a pipeline that calls other pipelines as shown [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest.html#conditionally-apply-pipelines)...

Your Conditions would be slightly different.

The example is nearly exactly your case

```auto
PUT _ingest/pipeline/one-pipeline-to-rule-them-all
{
  "processors": [
    {
      "pipeline": {
        "description": "If 'service.name' is 'apache_httpd', use 'httpd_pipeline'",
        "if": "ctx.service?.name == 'apache_httpd'",
        "name": "httpd_pipeline"
      }
    },
    {
      "pipeline": {
        "description": "If 'service.name' is 'syslog', use 'syslog_pipeline'",
        "if": "ctx.service?.name == 'syslog'",
        "name": "syslog_pipeline"
      }
    },
    {
      "fail": {
        "description": "If 'service.name' is not 'apache_httpd' or 'syslog', return a failure message",
        "if": "ctx.service?.name != 'apache_httpd' && ctx.service?.name != 'syslog'",
        "message": "This pipeline requires service.name to be either `syslog` or `apache_httpd`"
      }
    }
  ]
}

```

---

_[View the full topic](https://discuss.elastic.co/t/making-docker-container-logs-go-through-the-right-beats-module-for-processing/312126)._
