Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LHS to show the user agent? #32

Open
warrencohaesus opened this issue May 27, 2020 · 2 comments
Open

LHS to show the user agent? #32

warrencohaesus opened this issue May 27, 2020 · 2 comments

Comments

@warrencohaesus
Copy link

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.

@acaudwell
Copy link
Owner

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

@warrencohaesus
Copy link
Author

Thanks Andrew,

I'll give it a go!

Regards,

Warren.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants