# Disabling illegal request logs for production

**URL:** <https://discuss.akka.io/t/disabling-illegal-request-logs-for-production/5376>\
**Category:** Akka Libraries\
**Created:** [November 8, 2019, 6:35am UTC](https://discuss.akka.io/t/disabling-illegal-request-logs-for-production/5376 "2019-11-08T06:35:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![huntc](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/huntc/32/173_2.png) [@huntc](https://discuss.akka.io/u/huntc)\
**Post date:** [November 8, 2019, 6:35am UTC](https://discuss.akka.io/t/disabling-illegal-request-logs-for-production/5376/1 "2019-11-08T06:35:40Z")

</div>

When using Akka HTTP server-side in production, I’m noticing the following in my logs:

```auto
WARN ActorSystemImpl - Illegal request, responding with status '400 Bad Request': Cannot establish effective URI of request to `/`, request has a relative URI and is missing a `Host` header: consider setting `akka.http.server.default-host-header`

```

Is there a way to disable such warnings? I’m not in control of these requests coming in from the outside, and they’re just polluting my logs.

Note that I’ve already turned off header warnings: `akka.http.server.parsing.illegal-header-warnings=off`.

Thanks for any assistance.

---

<div class="post-metadata">

**Author:** ![johanandren](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/johanandren/32/85_2.png) [@johanandren](https://discuss.akka.io/u/johanandren)\
**Post date:** [November 25, 2019, 1:27pm UTC](https://discuss.akka.io/t/disabling-illegal-request-logs-for-production/5376/2 "2019-11-25T13:27:00Z")

</div>

I don’t think that there is a way with just configuration but maybe a custom logger filter could discard such log entries?
