Giter Site home page Giter Site logo

ucc_migration_test's Introduction

NOTE: This code is no longer supported. While this may still work for many TA's, it's no longer a sure thing so YMMV.

ucc Migration Test

This file contains source for a Unix shell script to perform a migration of modular inputs from a Splunk Add-On Builder(AOB) generated source base into a new Splunk UCC-based Add-On (a.k.a. TA). Splunk Universal Configuration Console (UCC) format provides a consistent user interface across all Splunk Add-Ons.

The script uses the helper functions from AOB's python3 libraries and merges the souce code from AOB-generated Inputs into a single file for each input. There are a number of edits performed using sed, awk and grep that create a new TA in the package directory.

This script copies the globalConfig.json file to the root directory providing the proper setup to execute the addonfactory-ucc-generator utility.

The script will make modifications to your python files and then prompt you to run ucc-gen, package the application for Splunkbase and submit the package to appInspect. Each of these actions are recommended but optional and separate scripts are included to package the add-on and submit it to appInspect at later points in time.

Notes

  • This utility has been tested for migrating Modular Inputs (both custom and REST calls) as well as Alert Actions.
  • The ucc-gen utility can be found here: https://github.com/splunk/addonfactory-ucc-generator
  • ucc-gen is installed using $ pip3 install splunk-add-on-ucc-framework

Instructions

  1. Clone this repository to your local machine
  2. Copy your TA's entire directory into this directory /ucc-migration_test/Splunk_TA_XXX
  3. Run the convert.sh script from the root directory of this repository passing in the name of the TA’s directory ./convert.sh Splunk_TA_XXX Your new source code will now be located in the /ucc-migration_test/package directory and is setup to run ucc-gen.
  4. Accept the prompt to run ucc-gen with the --ta-version parameter OR exit and execute ucc-gen command from the /ucc-migration_test directory later. The new TA will be written to a ucc-migration_test/output directory.
  5. Accept the prompt package your TA into a .tgz file OR exit and package the TA later using the package_app.sh script included.
  6. Upload your new TA from ucc-migration_test/output/ to a Splunk server and test it out.
  7. Accept the prompt to submit your app to Splunk's appInspect process OR exit and submit the TA later using the submit_appInspect.sh script included

Helpful Link

Splunk Cloud Vetting

ucc_migration_test's People

Contributors

jasonconger avatar monishshah18 avatar tmartin-s1 avatar tmartin14 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.