Use > Configure the Content Capsule on the Management Console > Add Audit Policies to the JSP File

Add Audit Policies to the JSP File

During the Service design import, the JSP file windows_audit.jsp is automatically imported into the following location:

<CSA_JBOSS_HOME>/standalone/deployments/csa.war/propertysources.

You can modify and updated this JSP file with the patch policies available in the SA Core.

Follow the steps to view the Audit Policies in the SA core:

  1. Log on to the SA core.

  2. On the left pane, click Library.
  3. For Windows platform, click Audit and Remediation > Audit Policies > Windows

    For Linux platform, click Audit and Remediation > Audit Policies > Unix

    On the right pane, the related audit policy names are listed.

  4. Add the audit policy names to the windows_audit.jsp file.

    For example, if audit policies with the names Audit Policy For Network and Audit Policy For Log are listed in the panel on the right, then the contents of the file would be as follows:

    <%@ page import="com.hp.csa.web.util.CSAIntegrationHelper" %>
    <% CSAIntegrationHelper.executeCSAREST("csa/rest/catalog?userIdentifier=90d96588360da0c701360da0f1d600a1"); %>
    <% String blueprintId = request.getParameter("id"); %>
        <Property>
            <availableValues>
                <value>Please select an Audit Policy Name</value>
                 <displayName> Please select an Audit Policy Name</displayName>
                <description>Please select an Audit Policy Name</description>
             </availableValues>
            <availableValues>
                <value>Audit Policy For Log</value>
                <displayName>Audit Policy For Log</displayName>
                <description>Audit Policy For Log</description>
            </availableValues>
            <availableValues>
                <value>Audit Policy For Network</value>
                <displayName>Audit Policy For Network</displayName>
                <description>Audit Policy For Network</description>
             </availableValues>
         </Property>

  5. You can add multiple audit policy names by adding the following element:

    <availableValues>
        <value>New Audit Policy Name</value>
        <displayName>Display Name</displayName>
        <description>Description</description>
    </availableValues>
  6. Save the file.