The Basics
- Nextcloud Server version 21.0.2.1
- Operating system and version Debian 10
- Web server and version nginx 1.14.2
- PHP version 7.3
- Is this the first time you’ve seen this error? (Yes)
- When did this problem seem to first start? (idk)
- Installation method manual
- Are you using CloudfIare, mod_security, or similar? No
Summary of the issue you are facing:
I am trying to parse nextcloud’s log,
and sometimes there are multiple useragent strings in the same line of log.
Here’s one example :
{"reqId":"tmEjqWgvbKkEbyEmu6ky","level":3,"time":"2025-02-12T08:48:24+01:00","remoteAddr":"105.102.218.95","user":"--","app":"user_external","method":"POST","url":"/login","message":"ERROR: Could not connect to imap server via curl: ","userAgent":"['Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0)', 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Mobile/15E148 Safari/604.1', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36 OPR/38.0.2220.41', 'Opera/9.80 (Macintosh; Intel Mac OS X; U; en) Presto/2.2.15 Version/10.00', 'Opera/9.60 (Windows NT 6.0; U; en) Presto/2.1.1']","version":"21.0.2.1"}
I don’t know what to make of this.
Help appreciated.