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

Enhancement request - management of hostip.sqlite file #1790

Open
jrehm-mmm opened this issue Aug 17, 2022 · 1 comment
Open

Enhancement request - management of hostip.sqlite file #1790

jrehm-mmm opened this issue Aug 17, 2022 · 1 comment
Assignees
Labels
Application core dependency in sc4s enhancement New feature or request

Comments

@jrehm-mmm
Copy link

Related to the use of SC4S_USE_NAME_CACHE=yes

After an old DNS Entry was deleted from our DNS service I noticed that I was still getting events indexed in splunk with hostnames that are not resolvable from the sc4s_container. I verified that tcpdump showed the correct DNSName and the message itself did not have a hostname in it.

After deleting the hostip.sqlite file the issue was resolved.

Would appreciate the following so we can automate updates or cleansing of this file without having to disable it, restart the container, exec into the container to delete the file, reenable it, and then restart the service.

  1. A method to delete the file entirely on shutdown. - Perhaps a flag like SC4S_NAME_CACHE_CLEAR=yes|no to have it delete the file on every startup?

  2. Potentially a method to validate the contents of the file against nslookup and give warnings if the content of the file do not match what is returned from DNS.

  3. Documentation on this file, it's location, it's contents, how to manually delete it and, direction on how to manipuate it.

@rjha-splunk rjha-splunk self-assigned this Aug 18, 2022
@rjha-splunk rjha-splunk added enhancement New feature or request Application core dependency in sc4s labels Aug 18, 2022
@jrehm-mmm
Copy link
Author

Showing his next level thinking, Ryan F was thinking:

1) "I was thinking the "feature" would be to have a special syslog event that would have the "ip" to delete to delete just one"._
and
2) "a host/ip pair to add one to the cache"

  1. What about a time tracker when the entry was added and the ability to send a command to delete everything with a timestmp older than x?

  2. Toss in a delete them all command and you can toss my original ideas out the window (asside from documenation of course :)

These This would allow us to update the cache on the fly without having to restart the container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Application core dependency in sc4s enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants