Creating and managing content packs
Content packs serve as a ready-made collection of components that extend the capabilities of using the TrueSight IT Data Analytics product. Content packs are a collection of components such as saved searches, data patterns, collection profiles, and dashboards that you can use to support a particular use case or for solving a particular issue.
The IT Data Analytics product provides a set of content packs that you can download from the BMC Software Electronic Product Distribution (EPD) website and start using immediately. Examples include content packs for monitoring the Oracle database logs, Citrix XenApp logs, and so on. For more information, see in the TrueSight IT Data Analytics content packs online documentation portal.
The following video (9:41) illustrates how to create a content pack for IT Data Analytics.
The following video displays screens from an earlier version, however, the information provided in the video is still relevant to the current version of the product.
The following information describes the basic concepts and the process of creating and using content packs.
What are the advantages of using a content pack?
You can use content packs in the following ways:
- Select particular components and export them together as a set, to share it with others, so that they can import it onto their TrueSight IT Data Analytics instance and start using it immediately.
- Save a backup copy of important components (exported) outside the product in case of system failures.
- Simplify the process of data collection and monitoring in the following ways:
- To configure data collection inputs, use data patterns and collection profiles in the content pack.
- To search data for particular monitoring purposes, use saved searches.
- To monitor data, use dashboards.
Macros in content packs
The product automatically extracts name=value pairs existing in the saved search queries as a list of macros while exporting a content pack. You can browse through list of saved searches to see the macros available. These macros are only available if the saved search query contains name=value pairs.
You can select the macros, change the values, and then export the content pack. The exported content pack will contain the new values substituted at the time of performing the export.
The macros selected at the time of performing the export can again be changed at the time of importing the content pack. However, you can only change those macros that were selected at the time of exporting the content pack.
Can I customize components included in a content pack?
Components imported via a content pack cannot be modified. However, you can clone the component and then customize it as per your needs. Note that by cloning a component, you are creating a private copy of that component. This means when a new version of the same content pack is imported, the cloned copy of the component will not be dynamically updated with the latest changes.
You can customize content packs in the following ways:
- Customize components imported via a content pack by cloning them.
- Customize saved search queries to provide new values for name=value pairs while exporting or importing a content pack.
Importing a content pack
When you import a content pack, the components included in that content pack are automatically listed on the individual components pages. For more information, see About components imported via a content pack.
Also, the name, description, and version information cannot be modified. This feature can help you manage, monitor, and control the revisions made to the content packs in your environment.
To import a content pack
- Navigate to Administration > Content Packs and click Import Content Pack .
- Click Browse next to the Import zipped file field to select the zipped file that you want to import.
Click Preview to preview the file contents.
- (Optional) On the left panel, click one of the components to view its details, and change values of the saved search macros that are enabled for editing.
For more information, see Macros in content packs.
Navigate to one of the following tabs to verify that the components are successfully imported:
Creating and making a copy of a content pack
You can use this feature to create a new content pack. This feature also allows you to create a copy of an existing content pack. By creating a copy of an existing content pack, you can customize it to suit your needs. The customized copy can then be exported as a new content pack.
Content packs can be created (or exported) by the app admin or the super admin. The person creating the content packs is known as the content pack author. Content pack authors are assumed to possess in-depth knowledge of the domain around which they create content packs.
To create a new content pack or to create a copy of an existing content pack, you need to select the components that you want to bundle together, and then export it as a zipped file.
Each time you create a content pack with the same name, a new version is created. This version is based on the version that you provide while exporting the content pack. The content pack name and version play an important role in providing revision control over the content packs in your environment.
Note that components included in a content pack are not editable when imported. This feature allows the content pack author to update an existing content pack with changes and release new versions of the same content pack. This feature also allows the content pack author to exercise revision control.
To create or make a copy of a content pack
- Navigate to Administration > Content Packs.
- Proceed in one of the following ways:
- To create a new content pack, click Export / Create Content Pack .
- To create a copy of an existing content pack, select one of the content packs listed, and then click Export / Create Content Pack
On doing this, you can see that the components included in the original content pack are already selected for your ease. You can change this selection as desired. .
- Provide the following information:
Name: Provide a name to identify the content pack.
BMC recommends you to use a uniform convention for providing a name for the content pack. This is important because content packs can be easily shared and customized and therefore can be difficult to maintain over time.
While deciding the naming convention, you need to ensure that the name is both easily identifiable and will not need to be changed again.
The naming convention can be decided based on various parameters. However, the most common parameters are as follows:
- Name must be application specific: If the components included in the content pack are related to the same application, you can use the naming convention, "<Application-Name><Application Version>".
- Name must be goal specific: If the components included in the content pack are required for monitoring a particular kind of error, you can use the naming convention, "<Application-Name><Application Version>:<Error-Code-OR-Error-Name>".
Description:(Optional) Provide additional information such as the purpose of exporting the content pack.
- Minimal Required Product Version: Select one of the IT Data Analytics product versions to set the minimal product version to import the content pack. After this value is set, you cannot import the content pack on a product version lower than the minimal required version set. By default this value is set to the current version of the product.
Version: Specify a unique name or number to make the content pack easily identifiable in the future. By assigning a version, you can keep track of incrementally different versions of the same content pack in the future.To implement revision control, it is important that you use a uniform convention while specifying the content pack version.
To implement revision control, it is important that you use a uniform convention while specifying the content pack version.
Content Pack version is applicable for IT Data Analytics version 2.5.00 and later.
- On the left panel, perform one of the following actions:
Select the components (such as saved searches, data patterns, dashboards, and collection profiles) that you want to export.
TipThe components displayed for selection can be categorized as all components available in your system and those that are imported via content packs. The components available in your system include components created by you, shared with you, and global components.
Default data patterns cannot be included in a content pack.
Search for a component by entering the component name or the content pack name in the search box and click Search Components.
You can view the details of a component by clicking it.
- (Optional) Customize saved searches that include name=value pairs in the search query.
To do this, select the macros and change the values. For more information, see Macros in content packs.
While using the Safari browser, it is possible that the exported zipped file is automatically extracted.
In this case, you need to change the browser preferences to disable automatic extraction of downloaded zipped files. To do this, navigate to Preferences and under the General tab, clear the selection next to Open “safe” files after downloading.
About components imported via a content pack
Components imported via a content pack can be used by all the users irrespective of their role. Note that saved searches imported via a content pack are treated as public saved searches.
Components imported via a content pack can be accessed on the particular component pages. For example, saved searches are listed on the Saved Searches page, data patterns are listed on the Administration > Data Patterns page, and so on. The individual component pages display the content pack name so that you can distinguish between components created by you and components imported via a content pack.
In the process of configuring an object by selecting a component (saved search, data pattern, dashboard, or collection profile), you can easily identify that the component is imported via a content pack because the component name is suffixed with the content pack name in square brackets. Thus, the component name is displayed in the format, ComponentName [ContentPackName].
The following examples describe this scenario:
- While adding a host, suppose you want to select a collection profile "CP1" that was imported via the content pack name "Oracle", the collection profile name is displayed as CP1 [Oracle].
Components imported via a content pack are not editable. Note that importing a new version of the same content pack can impact the components available in your system.
If an existing content pack is deleted and components imported by that content pack are in use, those components are removed from the content pack. Additionally, a private copy of the removed components is automatically created and the user using those components becomes the owner of the private copy. A private copy ensures smooth functioning of the objects dependent on the components. The components that are not in use are automatically deleted with the content pack deletion.
What happens with a content pack update?
When you import an updated version of an existing content pack, the following scenarios can occur:
- The updated version includes updated components (components with the same name as the earlier version, but with changes)
- The updated version does not include a component that was included in the earlier version.
- The updated version contains new components, for example new saved searches, data patterns, dashboards, or collection profiles.
The new components included in the content pack are automatically listed on the individual component pages.
The following table describes the impact of making updates to an existing content pack. This includes the impact of excluding a component in the content pack.
|Dashboards and collection profiles|
These components are independent entities. This means they are not used in the process of configuring other objects.
If the new version of a content pack does not include some dashboards or collection profiles (that were present in the earlier version), then such dashboards and collection profiles are automatically deleted. Similarly, dashboards and collection profiles are automatically updated with the new changes available with a content pack update.
Note that with a content pack update, any changes made to the collection profile (including deletion) does not impact the data collectors created by using that collection profile.
Saved searches and data patterns
|These components can be linked with other entities. Saved searches can be used in dashboards and notifications. Similarly, data patterns can be used in data collectors and collection profiles. |
Depending on whether these components are in use at the time of a content pack update, the changes can be different. This is explained as follows:
Icons and associated functions on the Content Packs tab
The Content Packs tab allows you to manage imported content packs. To access this tab, navigate to Administration > Content Packs. From here, you can perform the following actions:
|Import Content Pack|
Import a content pack into your current TrueSight IT Data Analytics instance.
|Export / Create Content Pack|
|View Content Pack||View details of the selected content pack.|
|Delete Content Pack|
Delete the selected content pack.
When you delete a content pack, the dashboards and collection profiles imported via the content pack are automatically deleted. Other components such as saved searches and data patterns are deleted based on whether they are in use.
Saved searches can be used in notifications or dashboards and data patterns can be used in data collectors or collection profiles. If the saved searches or data patterns are not in use then they are automatically deleted.
If the saved searches are found to be in use during the content pack deletion, those saved searches are removed from the content pack and a private copy of the original saved searches is automatically created. The private copy is named as, "Copy of <ComponentName> from <ContentPackName>". The user using the saved searches becomes the owner of the private copy. Thus, if there are multiple users using such saved searches, then multiple copies of the saved searches are created.
Similarly, if the data patterns are found to be in use during the content pack deletion, those data patterns are removed from the content pack and a copy of the original data patterns is automatically created. The copy is named as, "Copy of <ComponentName> from <ContentPackName>". By default, the copy is available to all users irrespective of their role.
Creation of a private copy ensures smooth functioning of the objects dependent on the saved searches (or data patterns).
Note: If the data pattern name was used in a saved search query, that query is not automatically updated.
The Content Packs tab provides the following information:
|Name||The name of the imported content pack.|
|Description||The description of the imported content pack.|
|Version||The version assigned to the content pack at the time of exporting (or creating) it.|