Adding Multiple Apps in an Extension
Package and export multiple apps and other content in an extension so users can download related apps or content in one file.
You can include multiple apps or content types in an extension, which you export as a compressed (.zip) file.
- Use SSH to log in to JSA as the root user.
- To get a list of the content types and search parameters,
type the following command:
/opt/qradar/bin/contentManagement.pl -h export
In the following example, you search for apps that are represented by the content type ID of 100, and the regex
.*, which matches everything.
/opt/qradar/bin/contentManagement.pl --action search -c 100 -r .*
You must specify the content type (-c) and a search regex (-r).
In the following example, you search for the custom content type "dashboard" that is represented by the content type ID of 4, and the regex
.*, which matches everything for dashboards content.
/opt/qradar/bin/contentManagement.pl --action search -c 4 -r .*
Use regex to narrow your search, for example, you use the following search to find dashboards content that includes 'Threat' in the name.
/opt/qradar/bin/contentManagement.pl --action search -c 4 -r Threat
- Add the content type IDs or string and the IDs of the
apps or content in a text file. The content type can be represented
by the string or ID. Use the following format:
Use the following rules to create the package text file:
Use a separate line for each content type.
Make sure that the first value that you enter on a line is the content type.
Make sure that the value that follows the content type is the ID of the app or the content.
Use commas to separate values.
Here's an example of packaging an app that has a content type of 100 and a dashboard that has a content type of 4.
Here's the same example where the string is used instead of the content type ID to represent the content type.
In the following example, strings are used for the content type, which are followed by the content IDs.
installed_application,1001 customrule,1274,1275 dashboard,10
- Save the text file as
- Type the following command to assemble and export your
content in an extension file:
/opt/qradar/bin/contentManagement.pl -a export -c package -f <mypackage>.txt.
The extension is created as a
.zipfile in the
/opt/qradar/binfolder. The file name has the following format:
Download the compressed (
.zip) file from the
on your JSA console. You can then use JSA Extensions Management on the Admin tab to
install your extension on your JSA console.
For more information about using the
contentManagement.pl script to export content, and about Extensions Management, see the Juniper Secure Analytics Administration Guide.