Logstalgia icon indicating copy to clipboard operation
Logstalgia copied to clipboard

LHS to show the user agent?

Open warrencohaesus opened this issue 5 years ago • 2 comments

Hi Andrew,

I'm enjoying using Logstalgia to view server logs, it's great, thank you! I'm wondering how to change things around so that on the left hand side of the screen it shows the user agent, rather than the source IP address? There are some poorly behaved user agents out that use a range of source IP addresses to quickly index a website. I'm interested in using Logstalgia identifying and displaying this behaviour.

Regards,

Warren.

warrencohaesus avatar May 27 '20 19:05 warrencohaesus

I don't think there's a built in way to do this at the moment.

You could rearrange the log file so the user agent string is where there ip/hostname would be (I think you'll need to also replace spaces in the agent string with underscores so it will get parsed correctly).

Alternatively, you could feed it a log in the custom log format with the agent in the hostname field: https://github.com/acaudwell/Logstalgia/wiki/Custom-Log-Format

acaudwell avatar May 28 '20 05:05 acaudwell

Thanks Andrew,

I'll give it a go!

Regards,

Warren.

warrencohaesus avatar May 28 '20 06:05 warrencohaesus