GithubHelp home page GithubHelp logo

bridgecrew-perf7 / splunk_oracle_cloud_deploy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vrich-100/splunk_oracle_cloud_deploy

0.0 0.0 0.0 53 KB

Quick start and deploy a Splunk validated architecture into Oracle Cloud Infrastructure by leveraging OCI's resource manager and Terraform.

Shell 62.34% Ruby 0.38% Python 0.43% Java 1.79% Go 1.11% C# 2.13% TypeScript 1.36% HCL 30.46%

splunk_oracle_cloud_deploy's Introduction

Overview

This repository is for a rapid deployment of a basic Splunk Validated Architecture on a new Oracle Cloud Infrastructure deployment.

This repository provisions Oracle Cloud Infrastructure components and 4 Splunk compute instances that are ready to perform as a Heavy Forwarder, Cluster Manager, Indexer with the Cluster Manager also serving as a Search Head.

In this repository, the Heavy Forwarder instance is ready for installation of the Oracle/Splunk Technical Add-on/ plugin. Contact Oracle support for the latest version.

The Cluster Manager is ready for the installation of the OCI (Oracle Cloud Infrastructure) App for Splunk. Use of this app with the TA installed on the heavy forwarder gives you monitoring of your Oracle Cloud Infrastructure in Splunk Enterprise.

For production enviroments, you will need to bring your Splunk License to ensure persistant performance.

Getting Started

1. Plan architecture:

  • Indexer cluster, y/n?
  • Search Head cluster, y/n?
  • Deployer on Cluster_Manager, y/n?
  • Multi-site, y/n?

2. In OCI

Create config file in your OCI deployment [for necessary variables for TA and app]

Create your required reserved IPs (think 1 for cluster master and 1 for search head cluster captain)

3. In your local copy of this repository

Replace the "XXXX" in the bash scripts with your reserved IP or desired ip for your Cluster Manager:

  • boostrap1.sh line 250.
  • bootstrap2.sh lines 248, 252, 255.
  • indexers.sh line 246.

Confirm desired ports listed [bash scripts]

4. Deploying your local copy of this repository in Oracle Cloud

OCI-Resource Manager-Stacks

Create New Stack

Upload your local copy of this repository (with the corrected IP addresses in the bash scripts) as a folder or .zip.

Make sure to fill in the password variable with your desired Splunk instance password

After Instances are Created Get OCID for Heavy Forwarder: __________ Attach the desired reserved ip address to the Cluster_Manager instance OCI-Instance(cluster-manager)-Attached VNICs, Click on {Name}, IPv4 address, Reserved IP

Confirm the policies for:

  • Logging
  • Streaming
  • Service Connector Hub, make sure to add the Audit logs
  • Create Dynamic Group (update with compartment OCID or instance.id of the Heavy Forwarder): Name of Dynamic Group:______________________ (ex SplunkTest) Ex: Any {instance.compartment.id ='ocid1.tenancy.oc1..aXXXX'}

Create Policy permissions: Allow dynamic-group SplunkTest to use stream-pull in tenancy

5. In your Splunk Instances

  • This repository will create a cluster with a replication factor of 2 and search factor of 2. More information can be found here

Cluster Manager Instance

  • Login to the instance using https://[publicipaddress]:8000

  • Your login information will be: username: admin pw: [set by your password variable]

  • In Splunk ---> Setting --->Indexer Clustering You will see you splunk instances in their respective function (indexer, search head)

The replication factor will not be 'met' until you add your heavy forwarder to the cluster

-Install OCI (Oracle Cloud Infrastructure) App for Splunk (optional) -Follow setup instrucions found in the "Details" tab of the app's page on splunkbase.

Heavy Forwarder

  • Login to the instance using https://[publicipaddress]:8000

  • Your login information will be: username: admin pw: [set by your password variable]

  • In Splunk ---> Setting --->Indexer Clustering

  • Enable indexer clustering

  • Create a 'peer node' and use the [publicip of cluster_manager instance] as the mgmt URI and choose port 8080.

  • Use the password set in indexer.sh line 248 and bootstrap2.sh line 257 for the pass4SymmKey value.

If you return to the Indexer Clustering screen on the cluster manager, you should see the forwarder and the replication/search factors should be met

The remaining steps are specific to the OCI TA but the instance can be used as a heavy forwarder for any purpose:

-Create index for OCI events NAME OF INDEX: _____________

-Install OCI TA

-Configure TA with the stream writing to the created index

-Confirm forwarding settings

Search Head Captain

working

Adding additional Splunk resources using OCI Resource Manager:

  • Return to OCI Resource Manager --> Stacks
  • Click on the name of the stack you've created
  • Click 'Edit'
  • You should see a similar screen to your initial creation of the stack. Select 'Next' at the bottom of the screen.
  • On the variables screen, increase the number of indexers to the desired total count.
  • Applying this job will provision indexer instances.

Result: Splunk, OCI HF, Index Cluster, SHCaptain

splunk_oracle_cloud_deploy's People

Contributors

halimer avatar vrich-100 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.