# Few logs without Traefik Router Name

**URL:** <https://community.traefik.io/t/few-logs-without-traefik-router-name/24359>\
**Category:** Traefik v3 (latest)\
**Tags:** middleware\
**Created:** [September 8, 2024, 8:48pm UTC](https://community.traefik.io/t/few-logs-without-traefik-router-name/24359 "2024-09-08T20:48:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![bastien](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@bastien](https://community.traefik.io/u/bastien)\
**Post date:** [September 8, 2024, 8:48pm UTC](https://community.traefik.io/t/few-logs-without-traefik-router-name/24359/1 "2024-09-08T20:48:02Z")

</div>

Hello.

I have just installed the last version of Traefik (3.1.2).

I have configured a couple of middlewares, everything works well.

When I check the access logs, I can see a few lines without Traefik Router Name.

```auto
bastien@laptop$ cat access.log | grep -v @
173.255.221.189 - - [08/Sep/2024:01:31:59 +0000] "GET / HTTP/1.1" 404 - "-" "Mozilla/5.0 zgrab/0.x" - "-" "-" 0ms
172.105.128.13 - - [08/Sep/2024:04:37:12 +0000] "GET / HTTP/1.1" 404 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" - "-" "-" 0ms
20.225.3.216 - - [08/Sep/2024:12:46:25 +0000] "GET / HTTP/1.1" 404 - "-" "Mozilla/5.0 zgrab/0.x" - "-" "-" 0ms

```

How can we explain that ?

I have one last router to redirect all requests that were not previously captured.

```auto
    router-forbidden:
      service: "service-forbidden"
      rule: "PathPrefix(`/`) || Host(`example.com`)"
      tls: true
      entryPoints: "websecure"
      priority: 1

```

In the worst-case scenario, I'd have to find the " router-forbidden@file" like :

```auto
167.94.138.124 - - [08/Sep/2024:16:57:48 +0000] "GET / HTTP/1.1" 403 - "-" "-" - "router-forbidden@file" "-" 136ms
13.83.43.199 - - [08/Sep/2024:18:05:00 +0000] "GET /autodiscover/autodiscover.json?@zdi/Powershell HTTP/1.1" 403 - "-" "Mozilla/5.0 zgrab/0.x" - "router-forbidden@file" "-" 141ms
51.254.59.114 - - [08/Sep/2024:19:18:55 +0000] "GET / HTTP/1.1" 403 - "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36" - "router-forbidden@file" "-" 146ms

```

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [September 9, 2024, 6:03am UTC](https://community.traefik.io/t/few-logs-without-traefik-router-name/24359/2 "2024-09-09T06:03:46Z")

</div>

If someone sends TLS requests with unknown domain to Traefik, you probably get 404 without a router.

Traefik would usually serve a default TLS cert, which standard browsers/clients would probably reject.

But a lot of people are scanning the Internet the whole time with a lot of different software.

You may be able to get some more info, if you set the Traefik access log into JSON format.

---

<div class="post-metadata">

**Author:** ![bastien](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@bastien](https://community.traefik.io/u/bastien)\
**Post date:** [September 9, 2024, 8:10am UTC](https://community.traefik.io/t/few-logs-without-traefik-router-name/24359/3 "2024-09-09T08:10:39Z")

</div>

Hello @bluepuma77.

But this request with an unknown domain should be marched with this route, no ?

All my other routes are spécified with a specific Host.

```auto
router-forbidden:
      service: "service-forbidden"
      rule: "PathPrefix(`/`) || Host(`example.com`)"
      tls: true
      entryPoints: "websecure"
      priority: 1

```

I will check in the Traefik json logs.

Thanks.

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [September 9, 2024, 8:52am UTC](https://community.traefik.io/t/few-logs-without-traefik-router-name/24359/4 "2024-09-09T08:52:18Z")

</div>

True. Maybe it’s a `http` request? Did you create a global redirect to `https`?

---

<div class="post-metadata">

**Author:** ![bastien](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@bastien](https://community.traefik.io/u/bastien)\
**Post date:** [September 9, 2024, 10:33am UTC](https://community.traefik.io/t/few-logs-without-traefik-router-name/24359/5 "2024-09-09T10:33:41Z")

</div>

I had already checked that.

The port forwarding is not enabled for the port 80 on my router.  
Only the port forwarding on 443 is currently activated.

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [September 9, 2024, 1:23pm UTC](https://community.traefik.io/t/few-logs-without-traefik-router-name/24359/6 "2024-09-09T13:23:08Z")

</div>

Did you try `http` on port 443?

---

<div class="post-metadata">

**Author:** ![bastien](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@bastien](https://community.traefik.io/u/bastien)\
**Post date:** [September 9, 2024, 5:12pm UTC](https://community.traefik.io/t/few-logs-without-traefik-router-name/24359/7 "2024-09-09T17:12:58Z")

</div>

Thanks. I think that we have found the problem.

![image](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/2/258a52ac1e3bbbf7a0a5551d0ef0902a0192e1d7.png)

I will check how I can fix that.

---

<div class="post-metadata">

**Author:** ![bastien](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@bastien](https://community.traefik.io/u/bastien)\
**Post date:** [September 9, 2024, 8:12pm UTC](https://community.traefik.io/t/few-logs-without-traefik-router-name/24359/8 "2024-09-09T20:12:32Z")

</div>

Just added this router (with tls=false) and now everything seems to be caught.

```auto
router-forbidden-http:
      service: "service-forbidden"
      rule: "PathPrefix(`/`) || Host(`example.com`)"
      tls: false
      entryPoints: "websecure"
      priority: 1

```

Thanks @bluepuma77 for your help.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/b/bd81ebdb578656e76e56ff3cc3eed021d3ba132d.png) [@system](https://community.traefik.io/u/system)\
**Post date:** [September 12, 2024, 8:13pm UTC](https://community.traefik.io/t/few-logs-without-traefik-router-name/24359/9 "2024-09-12T20:13:23Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
