-- Leo's gemini proxy

-- Connecting to gmi.runtimeterror.dev:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini;lang=en-US

💻 [runtimeterror $]

2021-02-18

Using VS Code to explore giant log bundles



I recently ran into a peculiar issue after upgrading my vRealize Automation homelab to the new 8.3 release, and the error message displayed in the UI didn't give me a whole lot of information to work with:

Image: Unfortunately my 'Essential Googling The Error Message' O'RLY book was no help with making the bad words go away

I connected to the vRA appliance to try to find the relevant log excerpt, but doing so isn't all that straightforward [1] given the containerized nature of the services.

So instead I used the `vracli log-bundle` command to generate a bundle of all relevant logs, and I then transferred the resulting (2.2GB!) `log-bundle.tar` to my workstation for further investigation. I expanded the tar and ran `tree -P '*.log'` to get a quick idea of what I've got to deal with:

Image: That's a lot of logs!

Ugh. Even if I knew which logs I wanted to look at (and I don't) it would take ages to dig through all of this. There's got to be a better way.

[1] doing so isn't all that straightforward

And there is! Visual Studio Code lets you open an entire directory tree in the editor:

Image: Directory opened in VS Code

You can then "Find in Files" with `Ctrl`+`Shift`+`F`, and VS Code will *very* quickly search through all the files to find what you're looking for:

Image: Searching all files

You can also click the "Open in editor" link at the top of the search results to open the matching snippets in a single view:

Image: All the matching strings together

Adjusting the number at the far top right of that view will dynamically tweak how many context lines are included with each line containing the search term.

In this case, the logs didn't actually tell me what was going wrong - but I felt much better for having explored them! Maybe this little trick will help you track down what's ailing you.



---


📧 Reply by email



Related articles


Enabling FIPS Compliance Fixes Aria Lifecycle 8.14

I Ditched vSphere for Proxmox VE

PSA: Microsoft's KB5022842 breaks Windows Server 2022 VMs with Secure Boot

---


Home

This page on the big web

-- Response ended

-- Page fetched on Fri May 10 12:48:54 2024