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

Allow exclude to be based off Hostname #4

Open
Shaun-Harrison opened this issue Jan 7, 2025 · 3 comments
Open

Allow exclude to be based off Hostname #4

Shaun-Harrison opened this issue Jan 7, 2025 · 3 comments

Comments

@Shaun-Harrison
Copy link

I get repeated logins such as the following

    **IP Address:**   108.177.64.133
    **Username:**    Shaun
    **Country:**   Belgium
    **Hostname:**   rate-limited-proxy-108-177-64-133.google.com
    **Region:**   Brussels Capital
    **City:**   Brussels
    **Login time:**   2025-01-07 08:22:29

I believe these are from GCP where I've got google assistant linked up, as they happen quite often. Would it be possible to let us exclude logs based on the hostname, and possibly use a wildcard, so that I could use rate-limited-proxy-*.google.com?

@rarosalion
Copy link
Owner

Quite possibly. This isn't my code, so I'm still working it all out. I'm currently working on trying to exclude specific ASNs first, but if I get that working successfully this should be an easy addition.

@rarosalion
Copy link
Owner

rarosalion commented Jan 11, 2025

Should be available in v0.0.4 now. Set a list value in the sensor setup "notify_exclude_hostnames" with any hostnames you want to ignore.

e.g.

sensor:
  - platform: authenticated
    notify_exclude_hostnames: ["myhost.domain", "othergoodhost.otherdomain"]

@Shaun-Harrison
Copy link
Author

Shaun-Harrison commented Jan 28, 2025

Sorry for the late reply, other than being able to use a wildcard, listing them out works!

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