# URI is too large \>8192 message, but no idea which URI

**URL:** <https://community.openhab.org/t/uri-is-too-large-8192-message-but-no-idea-which-uri/62283>\
**Category:** HABPanel\
**Tags:** openhab2, debug\
**Created:** [January 2, 2019, 7:55pm UTC](https://community.openhab.org/t/uri-is-too-large-8192-message-but-no-idea-which-uri/62283 "2019-01-02T19:55:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![waldorf](https://community.openhab.org/letter_avatar_proxy/v4/letter/w/e9a140/32.png) [@waldorf](https://community.openhab.org/u/waldorf)\
**Post date:** [January 2, 2019, 7:55pm UTC](https://community.openhab.org/t/uri-is-too-large-8192-message-but-no-idea-which-uri/62283/1 "2019-01-02T19:55:55Z")

</div>

OH2.4

I noticed I suddenly get a log message about every 5 seconds:  
[org.eclipse.jetty.http.HttpParser] - URI is too large \>8192

Found out the warning is cause by an image widget in habpanel which is update via the ipcamera widget. Unclear yet what the root cause is.

Turns out it is the image widget in combination with the URI from the cemara image item. The URI contains the image and is approx. 32 KiB.

Any other solution for this ?

---

<div class="post-metadata">

**Author:** ![matt1](https://community.openhab.org/user_avatar/community.openhab.org/matt1/32/19930_2.png) [@matt1](https://community.openhab.org/u/matt1)\
**Post date:** [January 13, 2019, 4:02am UTC](https://community.openhab.org/t/uri-is-too-large-8192-message-but-no-idea-which-uri/62283/2 "2019-01-13T04:02:31Z")

</div>

I do this to filter it out and another common warning i get when the IOS app is closed. The second log output that gets removed is..

```auto
[ERROR] [ersey.server.ServerRuntime$Responder] - An I/O error has occurred while writing a response message entity to the container output stream.

```

To apply the filter do this:

```auto
 sudo nano /var/lib/openhab2/etc/org.ops4j.pax.logging.cfg

```

Add this anywhere in the file and then restart openhab.

```auto
############ CUSTOM FILTERS START HERE #################

# filter out 2.4.0 stable warnings that can be ignored
log4j2.appender.out.filter.jettyWarn.type = RegexFilter
log4j2.appender.out.filter.jettyWarn.regex = .*(URI is too large >8192|while writing a response message entity to the container output stream).*
log4j2.appender.out.filter.jettyWarn.onMatch = DENY
log4j2.appender.out.filter.jettyWarn.onMisMatch = ACCEPT

################# END OF CUSTOM FILTERS ################

```

Then when you want to just delete the lines if you ever move to a newer Openhab version.

---

<div class="post-metadata">

**Author:** ![dastrix80](https://community.openhab.org/user_avatar/community.openhab.org/dastrix80/32/20582_2.png) [@dastrix80](https://community.openhab.org/u/dastrix80)\
**Post date:** [July 2, 2019, 3:57am UTC](https://community.openhab.org/t/uri-is-too-large-8192-message-but-no-idea-which-uri/62283/3 "2019-07-02T03:57:09Z")

</div>

Hi Matt,

with this line:

```auto
log4j2.appender.out.filter.jettyWarn.regex = .*(URI is too large >8192|while writing a response message entity to the container output stream).*

```

can I just delete the bit between \*\* and add my own message? like the below. Ive tried it but the log is still getting hammered with these messages

Im trying to filter the Karaf Console

```auto

# filter out 2.4.0 stable warnings that can be ignored
log4j2.appender.out.filter.jettyWarn.type = RegexFilter
log4j2.appender.out.filter.jettyWarn.regex = .*An I/O error has occurred while writing a response message entity to the container output stream.*
log4j2.appender.out.filter.jettyWarn.onMatch = DENY
log4j2.appender.out.filter.jettyWarn.onMisMatch = ACCEPT

```

---

<div class="post-metadata">

**Author:** ![matt1](https://community.openhab.org/user_avatar/community.openhab.org/matt1/32/19930_2.png) [@matt1](https://community.openhab.org/u/matt1)\
**Post date:** [July 2, 2019, 5:11am UTC](https://community.openhab.org/t/uri-is-too-large-8192-message-but-no-idea-which-uri/62283/4 "2019-07-02T05:11:44Z")

</div>

Yes you can but sometimes longer strings don’t match, why I don’t know which is why I used a shorter string. Also did the file already exist? Maybe your file is located here userdata/etc/org.ops4j.pax.logging.cfg

There are a lot of different ways to achieve similar things, see this thread…

> [@Taming openHAB 2 Logging](https://community.openhab.org/t/taming-openhab-2-logging/13976):
>
> This post is OBE. See [Log4j2 Sample Config](https://community.openhab.org/t/log4j2-sample-config/33284) \*\*NOTE: With the build from November 10 #579 the location of all the files in runtime/karaf/etc have moved to userdata/etc. The instructions below have been updated accordingly. If you are running an older verison of openHAB (anything older than build #579), the location of the file is runtime/karaf/etc. As almost everyone is aware, openHAB 2 uses a completely different logging library and approach to logging than openHAB 1.x does, replacing logback wi…

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [July 2, 2019, 1:27pm UTC](https://community.openhab.org/t/uri-is-too-large-8192-message-but-no-idea-which-uri/62283/5 "2019-07-02T13:27:55Z")

</div>

> [@matt1](#):
>
> see this thread…

@Dim has a better tutorial at [Log4j2 Sample Config](https://community.openhab.org/t/log4j2-sample-config/33284)
