Monitor HTTP Traffic On Localhost On A Given Port

I have an http server running on port 8080 on the localhost, it servers various http/https requests.
I’d like to monitor all incoming http requests coming to the localhost:8080 and find out information such as
where the request from i.e. which client made the request,
what type of http request method was used i.e. was it GET, PUT, POST
what is the request URL, where there any headers sent etc.

Any way to achieve this using telegraf’s input plugins ?
I checked inputs.http_response and that doesn’t seem to work.
I also checked inputs.http but I’m not sure if that is the right plugin for my task.

Thanks !

This only works if your HTTP server logs the data somewhere. In this case you could simply use the tail input plugin and grok parser for reading the log file.

Telegraf is not intended to serve as a HTTP proxy!