Suchen

Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

Chapter 1. Installing and configuring the Red Hat Insights application for Splunk

download PDF

The Red Hat Insights application for Splunk forwards selected Hybrid Cloud Console events to Splunk. The application seamlessly integrates with the Hybrid Cloud Console, so that you can focus on handling the data on the Splunk application side in the same way that you manage other sources of data. After the integration has been configured, you can view and manage Hybrid Cloud Console notifications from the Splunk dashboard without having to open the Red Hat Hybrid Cloud Console.

Contacting support

If you have any issues with the Red Hat Insights application for Splunk, contact Red Hat for support. You can open a Red Hat support case directly from the Hybrid Cloud Console by clicking Help (? icon) > Open a support case, or view more options from ? > Support options.

Splunk will not provide troubleshooting. The Red Hat Insights application for Splunk is fully supported by Red Hat.

Prerequisites

  • You have Splunk login credentials:

    • On Splunk Cloud Platform, you must have the Splunk Cloud Administrator sc-admin role.
    • On Splunk Enterprise, you must have the admin role. For more information about creating the admin role, see Create secure administration credentials in the Splunk documentation.
  • You have Organization Administrator permissions for the Hybrid Cloud Console.

1.1. Installing the Red Hat Insights application for Splunk

Install and configure the Red Hat Insights application for Splunk to integrate Splunk with the Hybrid Cloud Console so that Splunk can receive event notifications from the Hybrid Cloud Console. The setup automation performs the following tasks:

  • Creates a user group with the Notifications administrator role using the Organization Administrator permissions. You can also create the user group manually. For more information about manual configuration, see Manually configuring a Notifications administrator group in your Hybrid Cloud Console account.
  • Uses the Splunk HEC URL and HEC token to create a new integration called SPLUNK_AUTOMATION, with the integration type Splunk.
  • Creates a new behavior group called SPLUNK_AUTOMATION_GROUP on the RHEL bundle. The group includes an action to send notifications to the SPLUNK_AUTOMATION Splunk integration.
  • Assigns the new behavior group SPLUNK_AUTOMATION_GROUP to all Hybrid Cloud Console services. This forwards the events from all services to Splunk. Currently, the behavior group forwards events from the Advisor, Policies, Drift, Compliance, Malware Detection, Patch, and Vulnerability services.

When Splunk begins to receive notifications from the Hybrid Cloud Console, the Red Hat Insights application for Splunk dashboard shows event activity. Each number contains a hyperlink to the Hybrid Cloud Console.

img evnt splunk dashboard2

Prerequisites

  • You have Organization Administrator permissions for the Hybrid Cloud Console.
  • You have Splunk login credentials:

    • To install applications on Splunk Cloud Platform, you must have the Splunk Cloud Administrator sc-admin role.
    • To install applications on Splunk Enterprise, you must have the admin role. For more information about creating the admin role, see Create secure administration credentials in the Splunk documentation.
  • Popup blockers are disabled in your browser.

Procedure

  1. Install the Red Hat Insights Application for Splunk:

    1. Log in to Splunk.
    2. On the home page, search for Red Hat Insights in the filter box and select it.
    3. Click Install. When the installation process completes, the message Install successful displays.
    4. On the home page, click the Settings menu (gear icon). The Apps page opens.
    5. Enter Red Hat Insights in the filter box and then click the magnifying glass. The application appears in the search results.
    6. On the home page, click Find more apps under the Apps heading on the left of the screen. The Browse More Apps page opens.
    7. Enter Red Hat Insights in the filter box and then press the Enter key. Red Hat Insights appears in the search results.
    8. Select Red Hat Insights.
    9. Click Install.
    10. Confirm or enter your Splunk username and password and then click Agree and Install. When the installation process completes, the Complete dialog box opens.
  2. Set up the Red Hat Insights Application for Splunk:

    1. In the Complete dialog box, click Open the App. The App configuration page opens.
    2. Click Continue to app setup page. The Set up integration with Red Hat Insights page opens. The page includes the HTTP Event Collector (HEC) name and default index fields.

      img evnt splunk start2

    3. Under Create Red Hat Default Index, click Settings > Index.The Indexes page opens in a new tab.
    4. On the Indexes page, click New Index.
    5. Type a name for the index in the Name field (for example, redhatinsights).
    6. Enter values in the Max raw data size and Searchable retention (days) field.
    7. Click Save. The index you created appears in the Indexes list. It is enabled by default.
    8. On the first Splunk screen, on the Set up integration with Red Hat page, type the name for the HEC in the HEC name field (for example, redhatinsights).
    9. Type the name of the index you just created in the Default index field (for example, redhatinsights).
    10. Click Next.
    11. Click Review and then click Submit. The HEC name that you created appears in the HEC Name field.
    12. Click Next to create the HEC URL and HEC Token.

      img evnt create hec

  3. Configure Splunk integration in Insights:

    1. Click Copy to copy the HEC URL value in Splunk Enterprise.
    2. Click Next: Configure Splunk integration in Insights. The Hybrid Cloud Console opens in a new browser tab.

      Note

      This button is disabled until you click the Copy button for either the HEC URL or HEC token.

    3. In the Hybrid Cloud Console, navigate to Settings > Integrations.
  1. Paste the HEC URL value into the Splunk HEC URL field.

    Note

    If the new tab for the console does not open, disable the popup blocker in your browser.

  2. Add the port, if needed. The default port for Splunk Cloud Platform is 443. The default port for Splunk Enterprise and Splunk Cloud free trial is 8088.

    img evnt paste hec in hcc2

  3. Optional: If you are using Splunk Cloud, edit the HEC URL that you pasted into the Splunk HEC URL field on the Integrations page to match the Splunk Cloud format:

    • Use the following format for Splunk Cloud Platform on all clouds except Google Cloud Platform (GCP):

      <protocol>://http-inputs-<host>.splunkcloud.com:<port>/<endpoint>
    • Use the following format for Splunk Cloud Platform on Google Cloud Platform (GCP):

      <protocol>://http-inputs.<host>.splunkcloud.com:<port>/<endpoint>

      Replace the following placeholders:

    • protocol: Either http or https.
    • host: The name of the Splunk Cloud Platform instance that runs the HEC, followed by the domain .splunkcloud.com.
    • port: The HEC port number (443 by default on Splunk Cloud Platform instances).
    • endpoint: The HEC endpoint that you want to use. In many cases, you use the /services/collector/event endpoint for JSON-formatted events, or the services/collector/raw endpoint for raw events.

      Examples:

    • Splunk Cloud Platform on GCP using JSON:

      https://http-inputs.myhost.splunkcloud.com:443/services/collector/event
    • Splunk Cloud free trial on AWS using raw events:

      https://http-inputs-otherhost.splunkcloud.com:443/services/collector/raw
      1. Complete the setup process:
  4. Copy the HEC Token value in Splunk and paste it into the Splunk HEC Token field in on the Hybrid Cloud Console Integrations page.
  5. In the Hybrid Cloud Console, click Run configuration. The Hybrid Cloud Console sets up the integration, creates the behavior group, and associates Hybrid Cloud Console events to the behavior group. The status message section on the right side of the page shows the status of each of these actions.

    img evnt run config in hcc

  6. When the setup completes successfully, click Next: Review. The application returns the message Splunk integration in Insights completed.

    img evnt hcc config complete

  7. Click Go back to the Splunk application. This redirects you to the Set up integration with Red Hat screen in Splunk.
  8. Click Finish set up to complete the setup in Splunk.

    img evnt splunk setup complete

  9. Click Go to dashboard to be redirected to your Splunk dashboard.

    img evnt splunk dashboard

    Note

    If the integration configuration fails during the Insights setup process, contact Red Hat support.

    1. To view a list of Hybrid Cloud Console events on the Splunk dashboard, click the Events tab. Each event is hyperlinked to the Hybrid Cloud Console.

      splunk events log

1.2. Enabling the HEC token

Before Splunk can receive Hybrid Cloud Console events, you must enable the HEC token.

Prerequisites

  • You have Organization Administrator permissions for the Hybrid Cloud Console.
  • You have Splunk login credentials:

    • On Splunk Cloud Platform, you must have the Splunk Cloud Administrator sc-admin role.
    • On Splunk Enterprise, you must have the admin role. For more information about creating the admin role, see Create secure administration credentials in the Splunk documentation.

Procedure

  1. From the Splunk home page, navigate to Settings.
  2. Select Data Inputs, and then select HTTP Event Collector. The HTTP Event Collector page shows the HEC, its Token value, the corresponding index that you selected during setup, and the status of the HEC.

    img evnt splunk hec screen

  3. Click Global Settings in the upper right corner of the page. The Edit Global Settings dialog box displays.

    img evnt splunk global settings

  4. Select Enabled. This enables the HEC token that was automatically created during the setup process.

    Note

    The HEC token uses a default HTTP port number of 8088. If you are using a different port (such as port 443 for Splunk Cloud), you must update your Hybrid Cloud Console Splunk Integration to match.

Additional Resources

1.3. Manually configuring a Notifications administrator group in your Hybrid Cloud Console account

The Red Hat Insights application for Splunk automated installation and setup process automatically configures a Notifications administrator role and group in your Hybrid Cloud Console account. However, you can create the Notifications administrator manually.

Prerequisites

  • You are logged in to the Hybrid Cloud Console with the Organization Administrator role.

Procedure

  1. Click Settings > Identity & Access Management.
  2. Under Identity & Access Management, expand User Access if necessary, and select Groups.
  3. Click Create group. The Name and description page appears.
  4. Enter a name for the group (for example, splunknotifgroup), enter a description, and click Next. The Add roles page opens.
  5. To add the Notifications administrator role, enter notif in the search box.
  6. Select Notifications administrator from the search results list, and click Next. The Add Members page opens.
  7. Select the users to add to this group. You can use the search box to search for specific names.
  8. Click Next. The Review Details page opens.
  9. Review the information, and click Submit to create the group.
  10. Click Exit. The Groups page opens.

Verification

  1. Enter the new group name in the search box.
  2. Click the group name. The page for the group opens.
  3. On the Roles tab, verify that the group has the Notifications administrator role.
  4. Click the Members tab and verify that the group includes the correct members.

1.4. Manually configuring a Splunk integration

The Red Hat Insights application for Splunk automated installation and setup process automatically configures Splunk integration to your Hybrid Cloud Console account. Use this procedure if you want to configure the integration manually.

Prerequisites

  • You have an HTTP Event Collector (HEC) URL from Splunk Cloud or Splunk Enterprise.
  • You have the HEC token value from Splunk Cloud or Splunk Enterprise.
  • You are logged in to the Hybrid Cloud Console with the Notifications administrator role.

Procedure

  1. In the Hybrid Cloud Console, navigate to Settings > Integrations.
  2. Select the Reporting & Automation tab.
  3. Click Add integration.
  4. Select Splunk as the integration type, and click Next.
  5. Enter a name for your new integration in the Integration name field (for example, redhat_splunk).
  6. In the Endpoint URL field, add your Splunk HEC endpoint URL:

    1. For Splunk Enterprise, Splunk uses port 8088 by default. For example: https://<splunk-endpoint>:8088
    2. For Splunk Cloud, Splunk uses port 443. For more information about Splunk Cloud on AWS or GCP, see Send data to HTTP Event Collector.

      Note

      The service automatically adds <endpoint> (the http path). You do not need to include it in the form input for the Endpoint URL.

      The following examples show endpoint URLs with the correct port numbers for Splunk platforms.

      • On premise (Splunk Enterprise): https://splunk.company.com:8088
      • Splunk Cloud (on AWS): https://http-inputs-mycompany.splunkcloud.com:443
      • Splunk Cloud (on GCP): https://http-inputs.mycompany.splunkcloud.com:443
  7. In the Secret token field, add the Splunk HEC token value.
  8. Click Next.
  9. Review the integration details and click Submit.

Additional resources

1.5. Additional resources

Red Hat logoGithubRedditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

© 2024 Red Hat, Inc.