Log Insight: Converting Agent Groups into Manifests

The Log Insight agent leverages agent configurations which can be stored on the Log Insight server or in Content Packs as agent groups. The Log Insight importer leverages manifest files. The question becomes can you convert agent groups into manifests and if so how? In this post, I will answer this question. Read on to learn more!

li-logo

vSphere Agent Groups

First, you need to start with an existing agent group configuration. Taking the vSphere content pack, you can see multiple agent groups are available:

li-vsphere-agent-group

Assuming the goal is to import a vCenter Server support bundle into Log Insight, we can take the existing agent group as it contains the majority of what we need.

vSphere Manifest

Now that we have an agent configuration, we just need to make one change: convert the absolute path of each directory option to a relative path. Since the Log Insight importer supports recursive directories (more information here), the easiest way to achieve this is to prefix every directory option with a double asterisk. For example, this agent group configuration:

Would become:

IMPORTANT: EVERY directory option within a given agent group needs to be modified. A simple find and replace is sufficient.

Now you can proceed to use the Log Insight importer as previously discussed.

Summary

As you can see, it is easy to convert agent groups into manifest files. All that is required is changing the directory option in every configuration section from an absolute path to a relative.

© 2016, Steve Flanders. All rights reserved.

Leave a Reply