Overview


Installing PowerConnect for Splunk

1. Installation steps for Splunk app


Installation of Splunk App for PowerConnect at Splunk’s end requires the following steps to be completed in the order listed below.

1.1 Install Splunk Enterprise server (skip if Splunk is already installed)
1.2 Import the PowerConnect app into Splunk
1.3 Create an index for SAP to upload data
1.4 Create HEC Data Input
1.5 Information to pass on to SAP Team for SAP’s configuration for PowerConnect
1.6 Create a Role to control access for PowerConnect index
1.7 Create a user for PowerConnect access and assign the index

1.1 Install Splunk Enterprise server (skip if Splunk is already installed)

Install the Splunk Enterprise server according to the standard instructions. Generic install instructions are below.

Start by downloading and executing the splunk installer.

Install Steps 1

Install Steps 2

Click Install

Install Steps 3

Install Steps 4

Splunk is now installed

Login for first time

When you finish installing Splunk it will launch a browser and as you to log in and change the Admin password. Login using

user: admin

pw: changeme

Install Steps 5

And change the password

Install Steps 6

Splunk is now installed and running

Install Steps 7

1.2 Import the PowerConnect app into Splunk

Next we need to import the PowerConnect for Splunk application in to the Splunk server. This can be obtained from your local reseller as below OR you can use Find More Apps and download the compatible version directly from Splunkbase (search: PowerConnect)

Click on Apps -> Manage Apps

Install Steps 8

Click on the Install App from file

Install Steps 9

Click on browse and select the PowerConnect for Splunk APP .tar.gz file (Kindly make sure you are using the latest app https://splunkbase.splunk.com/app/3153/)

Install Steps 10

Select the checkbox [ ] Upgrade app. if PowerConnect for Splunk is already installed

Install Steps 11

Click Upload button

Install Steps 12

The app is now installed

1.3 Create an index for SAP to upload data

Select Settings -> Indexes

Install Steps 13

Click on New Index button in the top right corner

Install Steps 14

Give the index a name (sap) and set the default application to PowerConnect for Splunk

Install Steps 15

Click on Save

Install Steps 16

Index now exists

Install Steps 17

1.4 Create HEC Data Input

If it is a standalone system: HEC Data Input would be created in the systems where app was installed.

Ref Link: https://docs.splunk.com/Documentation/Splunk/8.0.3/Data/UsetheHTTPEventCollector

If there is a distributed env:

Ref Link: https://docs.splunk.com/Documentation/Splunk/8.0.3/Data/ScaleHTTPEventCollector

Select Settings -> Data Inputs

Install Steps 18

Select HTTP Event Collector

Install Steps 19

Click on New Token

Install Steps 20

Install Steps 21

Install Steps 22

Install Steps 23

Install Steps 24

Install Steps 25

Make sure token is enabled:

Install Steps 26

1.5 Information to pass on to SAP Team for SAP’s configuration for PowerConnect

HEC Index name: sap

HEC token value: 05efac0b-a874-434a-9c19-6033aa10f07a

HEC URL: http://splunktest.yourorg.com or https://splunktest.yourorg.com

(provide a fully qualified domain name URL in case of SSL setup)

HTTP Port: 8088 (it’s a default port, please validate if this hasn’t been changed by your organization)

SSL Certificate: Export and Share SSL Certificate .CER file

Install Steps 27

More information for SSL info and setup (skip if its a non-SSL config):

Start by connecting to the Splunk server on port 8089 using HTTPS this will show you the certificate in use.

Install Steps 30

Open the certificate information

Install Steps 31

Next click Copy to file to export this certificate

Install Steps 32

Install Steps 33

Install Steps 34

Install Steps 35

Install Steps 36

1.6 Create a Role to control access for PowerConnect index

Install Steps 37

Click on Roles

Install Steps 38

Click on Roles

Install Steps 39

Click on New

Install Steps 40

Create role sap and select Default app BNW-app-powerconnect

Multiple roles can be created and you can control access to different indexes by assigning them to different roles.

Click Save

1.7 Create a user for PowerConnect access and assign the index

Create a new user

Install Steps 41

Enter user name sap_user, and ensure the Default app is set to PowerConnect for Splunk

Install Steps 42

Add it to the sap group

Install Steps 43

Set a password

Install Steps 44

And click save

Install Steps 45

Assign Indexes to Role

To ensure Splunk searches the new index we have created we need to assign the sap group to the new index.

Install Steps 46

Click on Roles

Install Steps 47

Click on Roles

Install Steps 48

Click on sap role

Scroll down to the Indexes Searched by Default and Indexes section

Install Steps 49

And add the sap index to the list of indexes searched by default and searchable indexes for all users in the role Users

Click Save

Install Steps 50

Finalizing

Now we have installed Splunk and created a user for SAP to use to upload the data, and an index for the SAP data to go in to. We also have a user to use to connect to Splunk to view the data.

Access User / Role / Index association

Install Steps 51

2. Installation steps for SAP Add-on

Installation of PowerConnect for Splunk requires the following steps to be completed in the order listed below.

  1. If you wish to use HTTPS / SSL connection between SAP and Splunk please setup the SSL support in the ABAP engine using the steps listed here (link to Setting up HTTPS / SSL support).
  2. Import the agent using TMS / SAINT
  3. Activate BC Sets
  4. Upload PowerConnect Roles
  5. Start the PowerConnect for Splunk control panel in SAP using tcode /BNWVS/MAIN and Configure the connection between SAP and Splunk
  6. Load HDB Scripts (HANA only)

2.1 Setting up HTTPS / SSL support in SAP (only if SSL is enabled at Splunk end)

By default, Splunk REST API listens on port 8089 and HEC on Port 8088 with SSL active. SAP supports SSL however some basic setup is needed to provide SSL functionality to the native HTTP client built in to the ICM to support HTTPS. You can disable SSL support in Splunk and use HTTP without SSL to communicate between SAP and Splunk however it is not recommended for a production environment, especially where Splunk traffic traverses a shared network or in a public or private cloud hosted solution for SAP or Splunk.

If you wish to enable SSL support in SAP ABAP, please follow the steps below.

Please note that the instructions below are for setting up SSL to Splunk with a default configuration that includes a self-signed certificate that is included into Splunk during installation.

Important Note(s):

If your Splunk Enterprise Server has a custom SSL certificate installed, the process is the same,however names you see in the examples will differ from the screen shots below.

If you connect to a Splunk server via a proxy server then you will need to install any certificates that may sign HTTPS requests that flow through it into SAP.

If you are unsure about how to configure SSL, or you get SSL chain-verify or peer verify errors in SAP log a support call. You will need a valid license and support agreement to get email and phone support.

  • Ensure that System environment variable SECUDIR is set, this normally points to the /usr/sap/<SID>/<Instance>/sec directory.

    If further details are required for setting environment variables please refer to SAP OSS Note 1827566 – http://service.sap.com/sap/support/notes/1827566

  • Download the latest SAP Crypro library from SAP Marketplace and unpack into the instance executable directory
    
http://support.sap.com/swdc -> Support Packages and Patches -> My Application Components -> SAPCRYPTOLIB
  • In transaction RZ10 set the following profile parameters into the Default.pfl profile parameters. A restart of you SAP system is required after saving updated profile.

    Install Steps 52

  • In transaction STRUSTSSO2 activate the following SSL nodes:
    • SSL Server Standard
    • SSL Client SSL Client (Anonymous)
    • SSL Client SSL Client (Standard)

Activate by right clicking on each node and selecting “Create” – The default entry can be used unless specific security policies must be adhered too.

Install Steps 53

Change Mode -> Install Steps 54

Install Steps 55

Install Steps 56

Install Steps 57

Install Steps 58

Install Steps 59

Install Steps 60

Install Steps 61

Install Steps 62

Next we need to ensure the ROOT CA (or server self-signed certificate is installed in the ABAP system).

Start tcode STRUSTSSO2.

Highlight the hostname under node “SSL client SSL Client (Standard).

Install Steps 63

Click on the import button Install Steps 64 in the certificate section

Install Steps 65

Now enter the file path of the SplunkCommonCertificate saved in the previous step

Install Steps 66

Install Steps 67

Now the SplunkCommonCA certificate appears in the Certificate section, click on the Add to Certificate List button to add it to the Certificate List.

Install Steps 68

Click Save in the toolbar to save this change

Install Steps 69

Repeat this change for the following 2 nodes

  • SSL server Standard
  • SSL client SSL Client (Anonymous)

    Install Steps 70

2.2 Import the agent using TMS / SAINT

Ensure Installation and Support Packages are unpacked into \usr\sap\trans\EPS\in directory

Client 000 -> Transaction SAINT

Install Steps 71

Install Steps 72

Install Steps 73

Install add-on

Install Steps 74

From the main screen in transaction SAINT select “Start”

Install Steps 75

Highlight the PowerConnect Add-on

Install Steps 76

Select “Continue”

Install Steps 77

Please select the highest Target Support Package available for the BNWVS add-on if there was any uploaded into SAINT.

Install Steps 78

Select “Continue”

Install Steps 79

You will then see a list all packages being installed.

Install Steps 80

Select “Continue”

Install Steps 81

Select “No” for Modification Adjustment transport

Install Steps 82

Install Steps 83

Select the “Start Options” button

Install Steps 84

Change to start in background

Install Steps 85

Change option to “Start in background immediately”

Install Steps 86

Select the “tick” to continue

Install Steps 87

Install Steps 88

Select the “tick” to start installation

Install Steps 89

Install Steps 90

Install Steps 91

Once installation is complete select “Finish”

Install Steps 92

The “BNWVS” add-on will now appear in installed add-on list

Install Steps 93

2.3 Activate BC Sets

BCSET contains the client-dependant data, thus should be activated in the production client.

Login into the pro Go to transaction SCPR20

In the BC Sets Field enter “\BNWVS\BCSET_500”

Install Steps 94

BC Set -> Activate

Install Steps 95

Create a transport for the BC Set activation – This transport will be imported into subsequent systems rather than running this transaction again.

Install Steps 96

Important note!
If the transport was not requested, please check the SCC4 settings for the current client.

Install Steps 97

Install Steps 98

Install Steps 99

The follow line will appear at the bottom of screen on complete.

Install Steps 100

To confirm successful activation, view the logs by going to Goto -> Activation Logs

Install Steps 101

Install Steps 102

2.4 Upload PowerConnect Roles

Add Transport to buffer

Ensure transport files are loaded into the usr\sap\trans\cofiles and \usr\sap\trans\data directories.

Transaction STMS

From the buffer of the system select Extras -> Other Requests -> Add

Install Steps 103

Select transport “N71K902646”

Install Steps 104

Select the “tick” and then “yes” to add to buffer

Install Steps 105

Install Steps 106

Select transport with the mouse and then from menu select Request -> Import

Install Steps 107

Ensure “Ignore Invalid Component Version” is selected.

Install Steps 108

Confirm the import by pressing ‘Yes’.

Install Steps 109

Install Steps 110

Upload PowerConnect Roles

Transaction PFCG

From menu Role -> Upload

Install Steps 111

Install Steps 112

Navigate to the directory where you have saved the roles and select one.

Install Steps 113

Confirm the import.

Install Steps 114

Carry out the same procedure for following roles:

Z_BNWVS_ADMIN_CHANGE.SAP
Z_BNWVS_ADMIN_CONTROL.SAP
Z_BNWVS_ADMIN_DISPLAY.SAP
Z_BNWVS_BATCHUSER.SAP

Install Steps 115

Generation Roles

From menu select Utilities -> Mass generation

Install Steps 116

In the role field enter “Z_BNWVS*”

Install Steps 117

Select Program -> Execute

Install Steps 118

Edit -> Select All

Install Steps 119

Roles -> Generate profile

Install Steps 120

Select “online”

Install Steps 121

Install Steps 122

Leave transaction

Assign Roles

Assign role Z_BNWVS_ADMIN_CHANGE to user who will administer PowerConnect and Z_BNWVS_BATCHUSER to user that will run the PowerConnect batch jobs. Z_BNWVS_ADMIN_CONTROL role will grant authorizations to view the config and start/stop PowerConnect jobs (no change access).

2.5 Activate PowerConnect and setup Splunk connection

Transaction /n/bnwvs/main

License definition

Following popup will be given after the first run:

Install Steps 123

Press Yes to define the license key.

Copy the key and paste it using the button on the toolbar (or put it directly in the text field):

Install Steps 124

Please ensure the status is OK/Green. Save the config and confirm changes.

Splunk system setup

Install Steps 125

Following options are available:

  • Target system – Single Splunk/OMS system, it will receive all collected metrics.
  • Target group – Can contain few Splunk/OMS systems, all metrics will be load balanced across all of them.

Choose necessary option and press Next.

Install Steps 126

Define the Splunk system name (free text) to be able to identify the Splunk system among others.

Install Steps 127

Press Create to proceed.

Enter Splunk/OMS system details according to the chosen option (Splunk HEC, Splunk REST, OMS):

Install Steps 128

Optional: connection test can be performed if needed to check the Splunk system availability and ensure the index is created. Check button should be pressed in this case.

Important: please ensure that HTTP scheme (http or https) and port are defined in the Host field.

Press Confirm button to save the config.

Install Steps 129

Press Next to proceed.

On this screen the upload target should be created and added into the distribution scheme.

Install Steps 130

Set Active flag to activate the Splunk target.

Optional: If the Target group is created beforehand, it is also possible to assign this particular target system to chosen Target Group to be able to load balance metrics (i.e. in case of Splunk several indexers). Add to the Group option should be set in this case:

Install Steps 131

Press Next to move to the next step.

Install Steps 132

The Splunk system setup has been completed. Please Confirm the setup or press New Target to create another target system/group.

Start job dialog

Once the Splunk/OMS systems have been setup, following dialog will be given to start collection/uploading jobs:

Install Steps 133

It is possible to select job class or define the system to run these jobs. This step can be skipped, so jobs are started manually from the Control Panel.

Notification email setup

Please define the Notification Email on the next screen:

Install Steps 134

This email will be stored in the config and used to send a reminder about license expiration.

Once all these steps are completed, PowerConnect Control Panel will be shown on the screen.

2.6 Load HANA DB Scripts (only for HANA DB)

If your SAP systems run on HANA you will need to upload the scripts to run extended queries.

Administrator -> Setup Metric -> HDB Queries

Install Steps 135

Select Upload file button

Install Steps 136

Navigate to where HDB_SCRIPTS.xml or HDB_SCRIPTS.zip file has been saved and select

Install Steps 137

Install Steps 138

Once uploaded, select scripts you want to run and then press “Save” from the top menu

Install Steps 139

Important note!
Please note that some scripts are not valid out of the box and should be adjusted based on your system setup (i.e. the predefined scheme is not valid). It is recommended to activate necessary scripts one by one to avoid potential errors.

3. Knowledge Base and support

For more information:

  1. Kindly visit https://www.powerconnect.io/wiki/ for knowledge base articles.
  2. Email to support@powerconnect.io