Giter Club home page Giter Club logo

splunk-aws-cloudformation's Introduction

Splunk AWS CloudFormation

Easy-to-use AWS CloudFormation templates to deploy pre-configured Splunk single instance or distributed cluster on AWS.

Click through desired configuration for more details:

Directory Description
single-node Splunk single instance with App & Add-on for AWS pre-installed
multi-node Splunk multi-node cluster (AWS Quick Start)
multi-node-via-chef Splunk multi-node cluster provisioned via Chef

More Details in Splunk blog

Benefits

  • Incorporates Splunk best practices for operations and administration
  • Hides all complexity behind setting up distributed Splunk infrastructure
  • Extensible and customizable templates to fit custom needs
  • Accelerates test drive & deployment time down to minutes

Support

  1. Splunk CloudFormation templates are community supported
  2. Help can be found through the broader community at Splunk Answers
  3. Issues should be filed here: https://github.com/splunk/splunk-cloudformation/issues

License

The Splunk AWS CloudFormation is licensed under the Apache License, Version 2.0. Details can be found in the file LICENSE.

splunk-aws-cloudformation's People

Contributors

adamb0mb avatar billbartlett avatar jboelter avatar rarsan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

splunk-aws-cloudformation's Issues

Update templates to install latest version of splunk

Could you update https://splunk-cloud.s3.amazonaws.com/chefrepo.tar.gz so it installs the latest version of splunk?

The chef config has splunk versions specified thus

chefrepo/cookbooks/splunk/attributes/versions.rb:default['splunk']['server_version'] = "6.0.1"
chefrepo/cookbooks/splunk/attributes/versions.rb:default['splunk']['forwarder_version'] = "6.0.1"

I could open my vpc to access the chef server or some other method to change this but shouldn't it just work?

Provide a mid-tier distributed search template

Just ran into situation with a customer where neither single nor multi really fits well. First, for several reasons, I don't think we want to suggest that index replication is mandatory (and most customers don't use it today). And if that's not used, then the cluster master goes away.

By tossing in index replication, we are upping the EC2 count, the EBS sizes are impacted by the search & replication factor, and ongoing configuration is made much more complicated. If one doesn't have strict HA/DR requirements, then EBS snapshots will often suffice for continuity plans.

Therefore, I propose a new "distributed" or "mid" template that is closer to single, than multi. It would only create:

  • 1 search head
  • N indexers configured as search peers

And that's pretty much it.

How to use updated Splunk version?

I've tried hacking up the templates a bit and redirected all s3 links to my own and copied the cookbooks.tar.gz and roles.tar.gz from the splunk-cloud bucket. I modified versions.rb within attributes to use the most current version of Splunk and zipped the package back up and uploaded to my s3 bucket. I can confirm the archives are publicly available and downloadable without issue however I receive "failed to run run chef-solo" upon the first instance creation. Any suggestions?

Splunk AWS recommendation

It's great to see that something is moving in this space( Splunk in AWS cloud ). It would be nice to see some recommendations for deploying Splunk in AWS, e.g. what instance types, how many PIOPS, use of ELB and indexers or define Auto Scaling alarms for indexers.

(I've posted the same comment on blog.splunk.com but it's still in moderation queue, so I'm using more direct approach )

Stack fails to create due Master node bootstrap failure

2014-12-12 Status Type Logical ID Status Reason
17:16:00 UTC-0800 CREATE_FAILED AWS::CloudFormation::Stack SplunkCluster Embedded stack arn:aws:cloudformation:us-east-1:526601010978:stack/Xur-SplunkCluster-131CB5MPV29LO/d97c25d0-8264-11e4-aaf5-50fa52d244a8 was not successfully created: The following resource(s) failed to create: [MasterNode].

Stack creation failure on Bastion Host

Receiving the following error when using the master template. It fails and begins to rollback upon creating the bastion host.

Embedded stack arn:aws:cloudformation:us-west-2:429815655062:stack/splunk-cfn-test-BastionHost-1H10C7FAQK3H/7827fbc0-2763-11e5-b9e4-50442edf8e6e was not successfully created: The following resource(s) failed to create: [BastionSecurityGroup, CfnUser].

Bastion host creation fails when trying to use existing key pair

Hi,

While working with the vpc master template, I found that the bastion host creation fails when trying to use an existing key pair. I encountered this issue when following these steps:

  1. Create the splunk stack
  2. Delete splunk stack
  3. Create a new splunk stack in the same region.

Thanks
Rashmi

Failed to run cfn-init

I see the below issue when trying to run a small deployment

6:45:26 UTC-0700 CREATE_FAILED AWS::CloudFormation::Stack Master-BastionHost-KBPI1BOJYH7P The following resource(s) failed to create: [ControllerCondition].
16:45:25 UTC-0700 CREATE_FAILED AWS::CloudFormation::WaitCondition ControllerCondition WaitCondition received failed message: 'Failed to run cfn-init' for uniqueId: i-94dc6a56

Error in [MasterNode] when creating using template

So, trying to use the template and wasn't able to even get it going. Information below. Not exactly sure what the issue is, so any assistance would be great.

I am logged into our account as an Admin with full access (have run templates before) so I know it's not an access issue.

Thanks!!!

Template location: https://splunk-cloud-us-west-2.s3.amazonaws.com/cloudformation-templates/splunk_cluster.template

Region: US-West-2

Template Variables:

Stack name - {Name}
CIDRBlock - 0.0.0.0/0
ClusterSecurityKey - {Key}
ClusterSize - 3
HostedZoneName: [Blank]
InstanceType - c4.xlarge
KeyName - {KeyName}
SplunkLicenseBucket - {BucketName}
SplunkLicensePath - {LicenseURL}
Subdomain - [Blank]
SubnetCount - 2
SubnetIds - subnet-{ID}, subnet-{ID}
VpcId - vpc-{ID}

Console Error: Template validation error: Template format error: Unresolved resource dependencies [MasterNode] in the Resources block of the template

**MasterNode section from template**:

    "MasterNode" : {
      "Type" : "AWS::CloudFormation::Stack",
      "Condition": "AddLicenseMaster",
      "Metadata" : {
        "Comment" : "Splunk cluster master node + license master."
      },
      "Properties" : {
        "TemplateURL" : { "Fn::Join" : ["/", [{ "Fn::FindInMap" : [ "AWSRegion2s3Bucket", { "Ref" : "AWS::Region" }, "s3Bucket" ]},
                          "cloudformation-templates", "splunk_server.template" ]]},
        "Parameters" : {
          "VpcId"          : { "Ref" : "VpcId" },
          "SubnetId"       : { "Fn::Select" : [ "0", { "Ref" : "SubnetIds" } ] },
          "InstanceType"   : { "Ref" : "InstanceType" },
          "KeyName"        : { "Ref" : "KeyName" },
          "SecurityGroup"  : { "Ref" : "SplunkClusterMasterSecurityGroup" },
          "ClusterSecurityKey" : { "Ref" : "ClusterSecurityKey" },
          "SplunkLicenseBucket" : { "Ref" : "SplunkLicenseBucket" },
          "SplunkLicensePath" : { "Ref" : "SplunkLicensePath" },
          "SplunkRole"     : "cluster-master",
          "ResourceName"   : "MasterNode"
        }
      }
    },

    "MasterNode" : {
      "Type" : "AWS::CloudFormation::Stack",
      "Condition": "SkipLicenseMaster",
      "Metadata" : {
        "Comment" : "Splunk cluster master node."
      },
      "Properties" : {
        "TemplateURL" : { "Fn::Join" : ["/", [{ "Fn::FindInMap" : [ "AWSRegion2s3Bucket", { "Ref" : "AWS::Region" }, "s3Bucket" ]},
                          "cloudformation-templates", "splunk_server.template" ]]},
        "Parameters" : {
          "VpcId"          : { "Ref" : "VpcId" },
          "SubnetId"       : { "Fn::Select" : [ "0", { "Ref" : "SubnetIds" } ] },
          "InstanceType"   : { "Ref" : "InstanceType" },
          "KeyName"        : { "Ref" : "KeyName" },
          "SecurityGroup"  : { "Ref" : "SplunkClusterMasterSecurityGroup" },
          "ClusterSecurityKey" : { "Ref" : "ClusterSecurityKey" },
          "SplunkRole"     : "cluster-master",
          "ResourceName"   : "MasterNode"
        }
      }
    },

Put profile info into config (or command line)

when the aws-setup script is updated, the profile information at the top will get overwritten every time. Look to see if we can have user input for the profile name, or, move the config information to a different config file.

Cloud Formation Fails on us-east-1 t2.micro instances

Loading the master.template on CloudFormation with 2 indexers, I get the following error in the middle of the process:

16:20:06 UTC-0400 CREATE_FAILED AWS::CloudFormation::Stack BastionHost Embedded stack arn:aws:cloudformation:us-east-1:926291082449:stack/Splunk-BastionHost-1JDRJ8V6LBJVQ/189bfc50-5d79-11e5-bea4-50fa1dbb2c64 was not successfully created: The following resource(s) failed to create: [ControllerCondition].
Physical ID:arn:aws:cloudformation:us-east-1:926291082449:stack/Splunk-BastionHost-1JDRJ8V6LBJVQ/189bfc50-5d79-11e5-bea4-50fa1dbb2c64

Can someone let me know how to troubleshoot this further? Thanks!

Stack creation failed because of initialization failure on SearchHead instance

I tried to do a small deployment but was facing below issue. 100% repro.

17:39:55 UTC-0800 CREATE_FAILED AWS::CloudFormation::WaitCondition WaitCondition WaitCondition received failed message: 'Failed to install chef' for uniqueId: i-5a698c57

17:39:56 UTC-0800 CREATE_FAILED AWS::CloudFormation::Stack Splunk-SplunkCluster-178XH8XYUAIWW-SearchHead-1NGS2V2AKY9TW The following resource(s) failed to create: [WaitCondition].

Is this related to a recent bug fix?
"#install chef without docs\n",
"gem install ohai --version 6.16.0 --no-ri --no-rdoc || error_exit 'Failed to install ohai'\n",
"gem install chef --version 10.24.0 --no-ri --no-rdoc || error_exit 'Failed to install chef'\n"

Failed on Creating DNS Records

Embedded stack arn:aws:cloudformation:us-east-1:975402726461:stack/SplunkTesting-SplunkCluster-1DNX0R34N3G89/cce69170-2fca-11e5-b106-500162a66cb4 was not successfully created: The following resource(s) failed to create: [MasterNodeInternalDNSRecord, SearchHeadDNSRecord, SearchHeadInternalDNSRecord, MasterNodeDNSRecord, PeerNodesDNSRecord].

I am using a subdomain like test.domain.com in route53. Any ideas on why i get this error.

Support multi-AZ

Nice work. Here's a feature request to make this better still by supporting multiple availability zones.

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.