klogg icon indicating copy to clipboard operation
klogg copied to clipboard

IP address hostname resolution

Open mtd63 opened this issue 3 years ago • 2 comments

As common as IP addresses are in log files, it would be great if there was an integrated method of resolving them to hostnames (when possible). I was thinking there could be a single-line text field that ran across the main window (top, middle or bottom) and when right-clicking a selected section of a record, one of the options in the popup menu (and perhaps also in the Tools menu) would be "Resolve." This would take the object of the selection and attempt to resolve it to a hostname. If that is successful, the hostname would show up in that text field; otherwise, a short message would be displayed there (e.g. "Couldn't resolve "). Resolving a hostname to an IP address might also be useful, but since the recommendation is generally to avoid hostnames during logging to limit the delays imposed by the DNS resolution process, the desire for resolving in that direction is likely low.

mtd63 avatar Mar 12 '22 19:03 mtd63

Thanks for the suggestion. This could be a part of scratchpad window, as there are already several data transformations there. This is also a good example of an extension, that could be added as a plugin as it is not that general. Plugin system could bring a lot to klogg.

variar avatar Mar 13 '22 00:03 variar

The problem with leveraging the scratchpad window is that it's another window I'd need to keep open on my desktop. With a single line in the main window, since a hostname isn't going to consume more than that, that seems like a small cost to pay for functionality in the main window. There's also an issue with using the Scratchpad window, in general, that always seems to grab the whole line from the log, rather than only what is selected.

mtd63 avatar Mar 13 '22 15:03 mtd63