Simple Setup Page
18 |
29 | ├── .github └── workflows │ ├── js-examples-test.yml │ └── python-test.yml ├── .gitignore ├── LICENSE.txt ├── Makefile ├── README.md ├── THIRD_PARTY_CREDITS.MD ├── custom_alert_actions ├── README.md └── slack_alerts │ ├── README.md │ ├── appserver │ ├── static │ │ ├── appIcon.png │ │ ├── pages │ │ │ ├── common.js │ │ │ └── slack_alerts_setup.js │ │ └── slack.png │ └── templates │ │ └── setup.html │ ├── bin │ ├── safe_fmt.py │ ├── safe_fmt_tests.py │ ├── six.py │ ├── slack.py │ └── slack_tests.py │ ├── default │ ├── alert_actions.conf │ ├── app.conf │ ├── data │ │ └── ui │ │ │ ├── alerts │ │ │ └── slack.html │ │ │ ├── nav │ │ │ └── default.xml │ │ │ └── views │ │ │ └── slack_alerts_setup.xml │ └── restmap.conf │ ├── metadata │ └── default.meta │ └── static │ ├── appIcon.png │ └── appIcon_2x.png ├── custom_endpoints ├── README.md └── hello-world │ ├── README.md │ ├── bin │ ├── README │ ├── hello_templates.py │ └── hello_world.py │ ├── default │ ├── app.conf │ ├── data │ │ └── ui │ │ │ ├── nav │ │ │ └── default.xml │ │ │ └── views │ │ │ └── README │ ├── restmap.conf │ └── web.conf │ ├── local │ └── app.conf │ └── metadata │ ├── default.meta │ └── local.meta ├── custom_search_commands ├── README.md └── python │ ├── README.md │ ├── customsearchcommands_app │ ├── README.md │ ├── bin │ │ ├── _pydebug_conf.py │ │ ├── app.py │ │ ├── countmatches.py │ │ ├── filter.py │ │ ├── generatehello.py │ │ ├── generatetext.py │ │ ├── simulate.py │ │ └── sum.py │ ├── default │ │ ├── app.conf │ │ ├── commands.conf │ │ ├── data │ │ │ ├── population.csv │ │ │ └── ui │ │ │ │ └── nav │ │ │ │ └── default.xml │ │ ├── distsearch.conf │ │ ├── logging.conf │ │ ├── searchbnf.conf │ │ └── transforms.conf │ ├── lookups │ │ └── tweets.csv.gz │ └── metadata │ │ └── default.meta │ ├── customsearchcommands_template │ ├── bin │ │ ├── filter.py │ │ ├── generate.py │ │ ├── report.py │ │ └── stream.py │ ├── default │ │ ├── app.conf │ │ ├── commands-scpv1.conf │ │ ├── commands-scpv2.conf │ │ ├── commands.conf │ │ ├── data │ │ │ └── ui │ │ │ │ └── nav │ │ │ │ └── default.xml │ │ ├── distsearch.conf │ │ └── logging.conf │ └── metadata │ │ └── default.meta │ ├── eventingsearchcommands_app │ ├── README.md │ ├── bin │ │ └── eventingcsc.py │ ├── default │ │ ├── app.conf │ │ └── commands.conf │ └── metadata │ │ └── default.meta │ ├── generatingsearchcommands_app │ ├── README.md │ ├── bin │ │ └── generatingcsc.py │ ├── default │ │ ├── app.conf │ │ └── commands.conf │ └── metadata │ │ └── default.meta │ ├── reportingsearchcommands_app │ ├── README.md │ ├── bin │ │ └── reportingcsc.py │ ├── default │ │ ├── app.conf │ │ └── commands.conf │ └── metadata │ │ └── default.meta │ └── streamingsearchcommands_app │ ├── README.md │ ├── bin │ └── streamingcsc.py │ ├── default │ ├── app.conf │ └── commands.conf │ └── metadata │ └── default.meta ├── docker-compose.yml ├── javascript ├── README.md ├── browser │ ├── create-splunk-react-app │ │ ├── .gitignore │ │ ├── README.md │ │ ├── create-splunk-react-app.gif │ │ ├── package.json │ │ ├── public │ │ │ ├── favicon.ico │ │ │ ├── index.html │ │ │ ├── logo192.png │ │ │ ├── logo512.png │ │ │ ├── manifest.json │ │ │ └── robots.txt │ │ └── src │ │ │ ├── App.css │ │ │ ├── App.js │ │ │ ├── App.test.js │ │ │ ├── Inputs.css │ │ │ ├── Inputs.js │ │ │ ├── SplunkJsExample.css │ │ │ ├── SplunkJsExample.js │ │ │ ├── index.css │ │ │ ├── index.js │ │ │ ├── serviceWorker.js │ │ │ ├── setupProxy.js │ │ │ ├── setupTests.js │ │ │ └── splunkConfig.js │ ├── helloworld │ │ └── index.html │ ├── index.html │ ├── minisplunk │ │ ├── backbone.js │ │ ├── bootstrap-1.1.1.css │ │ ├── bootstrap.modal.js │ │ ├── date.format.js │ │ ├── index.html │ │ ├── jquery.fn.gmap.js │ │ ├── less.js │ │ ├── models.js │ │ ├── site.js │ │ ├── underscore.js │ │ └── views.js │ ├── resources │ │ ├── bootstrap.css │ │ ├── bootstrap.dropdown.js │ │ ├── bootstrap.tabs.js │ │ ├── images │ │ │ ├── 3viz.png │ │ │ ├── minisplunk.png │ │ │ ├── simple.png │ │ │ ├── splunk.png │ │ │ └── ui.png │ │ ├── jquery.min.js │ │ ├── jquery.placeholder.min.js │ │ ├── json2.js │ │ ├── prettify.css │ │ ├── prettify.js │ │ ├── rickshaw │ │ │ ├── d3.layout.min.js │ │ │ ├── d3.min.js │ │ │ ├── detail.css │ │ │ ├── extensions.css │ │ │ ├── graph.css │ │ │ ├── legend.css │ │ │ ├── rickshaw.min.css │ │ │ └── rickshaw.min.js │ │ └── timeline.css │ ├── ui │ │ └── index.html │ └── viz │ │ └── index.html ├── node │ ├── README.md │ ├── cmdline.js │ ├── helloworld │ │ ├── README.md │ │ ├── apps.js │ │ ├── endpoint_instantiation.js │ │ ├── firedalerts.js │ │ ├── firedalerts_create.js │ │ ├── firedalerts_delete.js │ │ ├── get_job.js │ │ ├── log.js │ │ ├── pivot.js │ │ ├── savedsearches.js │ │ ├── savedsearches_create.js │ │ ├── savedsearches_delete.js │ │ ├── search_blocking.js │ │ ├── search_normal.js │ │ ├── search_oneshot.js │ │ └── search_realtime.js │ ├── jobs.js │ ├── login.js │ ├── results.js │ └── search.js ├── package.json ├── test_browser_examples.js └── test_examples.js ├── modularinputs ├── README.md └── python │ ├── github_commits │ ├── README.md │ ├── README │ │ └── inputs.conf.spec │ ├── bin │ │ └── github_commits.py │ └── default │ │ ├── app.conf │ │ └── inputs.conf │ ├── github_forks │ ├── README.md │ ├── README │ │ └── inputs.conf.spec │ ├── bin │ │ └── github_forks.py │ └── default │ │ ├── app.conf │ │ └── inputs.conf │ └── random_numbers │ ├── README.md │ ├── README │ └── inputs.conf.spec │ ├── bin │ └── random_numbers.py │ └── default │ ├── app.conf │ └── inputs.conf ├── python ├── .env ├── README.md ├── analytics │ ├── README.md │ ├── __init__.py │ ├── bottle.py │ ├── css │ │ ├── analytics.css │ │ ├── jquery.ui.selectmenu.css │ │ └── showLoading.css │ ├── images │ │ └── loading.gif │ ├── input.py │ ├── js │ │ ├── date.format.js │ │ ├── jquery.flot.js │ │ ├── jquery.flot.selection.js │ │ ├── jquery.showLoading.js │ │ └── jquery.ui.selectmenu.js │ ├── output.py │ ├── server.py │ └── templates │ │ ├── application.tpl │ │ ├── applications.tpl │ │ └── make_table.tpl ├── apicalls_binding.py ├── apicalls_client.py ├── apicalls_httplib.py ├── binding1.py ├── conf.py ├── dashboard │ ├── README.md │ └── feed.py ├── event_types.py ├── explorer │ ├── README.md │ ├── endpoints.js │ ├── explorer.css │ ├── explorer.html │ ├── explorer.py │ ├── prettify │ │ ├── lang-apollo.js │ │ ├── lang-clj.js │ │ ├── lang-css.js │ │ ├── lang-go.js │ │ ├── lang-hs.js │ │ ├── lang-lisp.js │ │ ├── lang-lua.js │ │ ├── lang-ml.js │ │ ├── lang-n.js │ │ ├── lang-proto.js │ │ ├── lang-scala.js │ │ ├── lang-sql.js │ │ ├── lang-tex.js │ │ ├── lang-vb.js │ │ ├── lang-vhdl.js │ │ ├── lang-wiki.js │ │ ├── lang-xq.js │ │ ├── lang-yaml.js │ │ ├── prettify.css │ │ └── prettify.js │ └── server.py ├── export.py ├── fired_alerts.py ├── follow.py ├── genevents.py ├── get_job.py ├── handlers │ ├── README.md │ ├── cacert.bad.pem │ ├── cacert.pem │ ├── handler_certs.py │ ├── handler_debug.py │ ├── handler_proxy.py │ ├── handler_urllib2.py │ └── tiny-proxy.py ├── index.py ├── info.py ├── inputs.py ├── job.py ├── kvstore.py ├── loggers.py ├── oneshot.py ├── results.py ├── saved_search.py ├── saved_searches.py ├── search.py ├── search_modes.py ├── spcmd.py ├── spurl.py ├── stail.py ├── submit.py ├── tests │ ├── test_examples.py │ └── testlib.py ├── tox.ini ├── twitted │ ├── README.md │ ├── input.py │ └── twitted │ │ ├── README.md │ │ ├── bin │ │ ├── hashtags.py │ │ └── tophashtags.py │ │ ├── default │ │ ├── app.conf │ │ └── commands.conf │ │ └── metadata │ │ └── default.meta ├── upload.py └── utils.py ├── requirements.txt ├── setup_pages ├── README.md ├── SUIT-setup-page-example │ ├── .editorconfig │ ├── .gitignore │ ├── .prettierrc │ ├── LICENSE.md │ ├── NOTICE.csv │ ├── README.md │ ├── babel.config.js │ ├── lerna.json │ ├── package.json │ ├── packages │ │ ├── setup-component │ │ │ ├── .babelrc.js │ │ │ ├── .eslintrc.js │ │ │ ├── .gitignore │ │ │ ├── .npmignore │ │ │ ├── CHANGELOG.md │ │ │ ├── README.md │ │ │ ├── demo │ │ │ │ ├── demo.jsx │ │ │ │ ├── splunk-app │ │ │ │ │ ├── appserver │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ └── demo.html │ │ │ │ │ └── default │ │ │ │ │ │ ├── app.conf │ │ │ │ │ │ └── data │ │ │ │ │ │ └── ui │ │ │ │ │ │ ├── nav │ │ │ │ │ │ └── default.xml │ │ │ │ │ │ └── views │ │ │ │ │ │ └── demo.xml │ │ │ │ ├── standalone │ │ │ │ │ └── index.html │ │ │ │ ├── webpack.splunkapp.config.js │ │ │ │ └── webpack.standalone.config.js │ │ │ ├── jest.config.js │ │ │ ├── package.json │ │ │ ├── src │ │ │ │ ├── DependencyCheck.jsx │ │ │ │ ├── SetupComponent.jsx │ │ │ │ ├── SetupComponentStyles.js │ │ │ │ └── tests │ │ │ │ │ └── SetupComponent.unit.jsx │ │ │ ├── stylelint.config.js │ │ │ └── webpack.config.js │ │ └── setup-example-app │ │ │ ├── .babelrc.js │ │ │ ├── .eslintrc.js │ │ │ ├── .gitignore │ │ │ ├── .npmignore │ │ │ ├── CHANGELOG.md │ │ │ ├── README.md │ │ │ ├── package.json │ │ │ ├── src │ │ │ └── main │ │ │ │ ├── resources │ │ │ │ └── splunk │ │ │ │ │ ├── appserver │ │ │ │ │ └── templates │ │ │ │ │ │ └── start.html │ │ │ │ │ └── default │ │ │ │ │ ├── app.conf │ │ │ │ │ └── data │ │ │ │ │ └── ui │ │ │ │ │ ├── nav │ │ │ │ │ └── default.xml │ │ │ │ │ └── views │ │ │ │ │ └── start.xml │ │ │ │ └── webapp │ │ │ │ └── pages │ │ │ │ └── start │ │ │ │ ├── StartStyles.js │ │ │ │ └── index.jsx │ │ │ ├── stylelint.config.js │ │ │ └── webpack.config.js │ └── yarn.lock ├── dependency_checking_app_example │ ├── README.md │ ├── appserver │ │ └── static │ │ │ ├── javascript │ │ │ ├── setup_page.js │ │ │ ├── vendor │ │ │ │ ├── react-dom.production.min.js │ │ │ │ └── react.production.min.js │ │ │ └── views │ │ │ │ ├── app.js │ │ │ │ ├── setup_configuration.js │ │ │ │ ├── setup_page.js │ │ │ │ ├── splunk_helpers.js │ │ │ │ ├── storage_passwords.js │ │ │ │ └── util.js │ │ │ └── styles │ │ │ └── setup_page.css │ ├── bin │ │ └── weather.py │ ├── default │ │ ├── app.conf │ │ ├── commands.conf │ │ └── data │ │ │ └── ui │ │ │ ├── nav │ │ │ └── default.xml │ │ │ └── views │ │ │ └── setup_page_dashboard.xml │ ├── metadata │ │ └── default.meta │ └── static │ │ ├── appIcon.png │ │ └── appIcon_2x.png ├── developer_guidance_setup_page │ ├── README.md │ ├── appserver │ │ └── static │ │ │ ├── javascript │ │ │ ├── setup_page.js │ │ │ └── views │ │ │ │ ├── setup_configuration.js │ │ │ │ ├── setup_page_example.js │ │ │ │ ├── setup_page_example_template.js │ │ │ │ └── splunk_helpers.js │ │ │ └── styles │ │ │ └── setup_page.css │ ├── default │ │ ├── app.conf │ │ └── data │ │ │ └── ui │ │ │ ├── nav │ │ │ └── default.xml │ │ │ └── views │ │ │ └── setup_page_dashboard.xml │ ├── metadata │ │ └── default.meta │ └── static │ │ ├── appIcon.png │ │ └── appIcon_2x.png ├── react_setup_page_example │ ├── README.md │ ├── appserver │ │ └── static │ │ │ ├── javascript │ │ │ ├── setup_page.js │ │ │ ├── vendor │ │ │ │ ├── react-dom.production.min.js │ │ │ │ └── react.production.min.js │ │ │ └── views │ │ │ │ ├── app.js │ │ │ │ ├── setup_configuration.js │ │ │ │ ├── setup_page.js │ │ │ │ └── splunk_helpers.js │ │ │ └── styles │ │ │ └── setup_page.css │ ├── default │ │ ├── app.conf │ │ └── data │ │ │ └── ui │ │ │ ├── nav │ │ │ └── default.xml │ │ │ └── views │ │ │ └── setup_page_dashboard.xml │ ├── metadata │ │ └── default.meta │ └── static │ │ ├── appIcon.png │ │ └── appIcon_2x.png ├── setup_page_simple │ ├── README.md │ ├── appserver │ │ └── static │ │ │ ├── javascript │ │ │ └── setup_page.js │ │ │ └── styles │ │ │ └── setup_page.css │ ├── default │ │ ├── app.conf │ │ └── data │ │ │ └── ui │ │ │ └── views │ │ │ └── setup_page_dashboard.xml │ └── static │ │ ├── appIcon.png │ │ └── appIcon_2x.png └── weather_app_example │ ├── README.md │ ├── appserver │ └── static │ │ ├── javascript │ │ ├── setup_page.js │ │ ├── vendor │ │ │ ├── react-dom.production.min.js │ │ │ └── react.production.min.js │ │ └── views │ │ │ ├── app.js │ │ │ ├── setup_configuration.js │ │ │ ├── setup_page.js │ │ │ ├── splunk_helpers.js │ │ │ ├── storage_passwords.js │ │ │ └── util.js │ │ └── styles │ │ └── setup_page.css │ ├── bin │ └── weather.py │ ├── default │ ├── app.conf │ ├── commands.conf │ └── data │ │ └── ui │ │ ├── nav │ │ └── default.xml │ │ └── views │ │ └── setup_page_dashboard.xml │ ├── metadata │ └── default.meta │ └── static │ ├── appIcon.png │ └── appIcon_2x.png ├── spl2-sample-apps ├── sample_spl2_buttercup │ ├── README.md │ ├── default │ │ ├── app.conf │ │ ├── data │ │ │ ├── spl2 │ │ │ │ ├── _default.spl2 │ │ │ │ ├── functions.spl2 │ │ │ │ ├── sample_data.spl2 │ │ │ │ ├── setup.spl2 │ │ │ │ └── testing.spl2 │ │ │ └── ui │ │ │ │ ├── nav │ │ │ │ └── default.xml │ │ │ │ └── views │ │ │ │ └── buttercup_games.xml │ │ └── transforms.conf │ ├── lookups │ │ ├── sample_products.csv │ │ └── sample_suppliers.csv │ └── metadata │ │ └── default.meta └── sample_spl2_pii_masking │ ├── README.md │ ├── default │ ├── app.conf │ └── data │ │ ├── spl2 │ │ ├── _default.spl2 │ │ ├── functions.spl2 │ │ ├── masking.spl2 │ │ └── sample_data.spl2 │ │ └── ui │ │ └── nav │ │ └── default.xml │ └── metadata │ └── default.meta └── tutorials ├── Module-01_GetStarted └── devtutorial │ ├── bin │ └── README │ ├── default │ ├── app.conf │ ├── data │ │ └── ui │ │ │ ├── nav │ │ │ └── default.xml │ │ │ └── views │ │ │ └── welcome.xml │ └── savedsearches.conf │ └── metadata │ └── default.meta ├── Module-02_SetupPage ├── appserver.zip └── devtutorial │ ├── appserver │ └── static │ │ ├── javascript │ │ ├── setup_page.js │ │ └── views │ │ │ ├── app.js │ │ │ ├── setup_configuration.js │ │ │ ├── splunk_helpers.js │ │ │ ├── store_secret.js │ │ │ └── util.js │ │ └── styles │ │ └── setup_page.css │ ├── bin │ └── README │ ├── default │ ├── app.conf │ ├── data │ │ └── ui │ │ │ ├── nav │ │ │ └── default.xml │ │ │ └── views │ │ │ ├── setup_page_dashboard.xml │ │ │ └── welcome.xml │ └── savedsearches.conf │ └── metadata │ └── default.meta ├── Module-03_ExternalLookup └── devtutorial │ ├── README │ ├── bin │ ├── README │ └── dns_external_lookup.py │ ├── default │ ├── app.conf │ ├── data │ │ └── ui │ │ │ ├── nav │ │ │ └── default.xml │ │ │ └── views │ │ │ ├── README │ │ │ └── welcome.xml │ ├── savedsearches.conf │ └── transforms.conf │ ├── metadata │ └── default.meta │ └── static │ ├── appIcon.png │ ├── appIconAlt.png │ ├── appIconAlt_2x.png │ └── appIcon_2x.png └── Module-04_Validate └── devtutorial ├── README ├── default ├── app.conf ├── data │ └── ui │ │ ├── nav │ │ └── default.xml │ │ └── views │ │ ├── README │ │ └── welcome.xml └── savedsearches.conf ├── metadata └── default.meta └── static ├── appIcon.png ├── appIconAlt.png ├── appIconAlt_2x.png └── appIcon_2x.png /.github/workflows/js-examples-test.yml: -------------------------------------------------------------------------------- 1 | name: JS Examples CI 2 | 3 | on: 4 | workflow_dispatch: 5 | push: 6 | paths: 7 | - "javascript/**" 8 | 9 | jobs: 10 | build: 11 | runs-on: ${{ matrix.os }} 12 | strategy: 13 | matrix: 14 | os: 15 | - ubuntu-latest 16 | node: 17 | - 14 18 | - 8.17.0 19 | - 22 20 | splunk-version: 21 | - "8.0" 22 | - "latest" 23 | 24 | services: 25 | splunk: 26 | image: splunk/splunk:${{matrix.splunk-version}} 27 | env: 28 | SPLUNK_START_ARGS: --accept-license 29 | SPLUNK_HEC_TOKEN: 11111111-1111-1111-1111-1111111111113 30 | SPLUNK_PASSWORD: changed! 31 | SPLUNK_APPS_URL: https://github.com/splunk/sdk-app-collection/releases/download/v1.1.0/sdkappcollection.tgz 32 | ports: 33 | - 8000:8000 34 | - 8088:8088 35 | - 8089:8089 36 | 37 | steps: 38 | - uses: actions/checkout@v2 39 | - uses: actions/setup-node@v2 40 | with: 41 | node-version: ${{ matrix.node }} 42 | 43 | - name: Create .splunkrc file 44 | run: | 45 | cd ~ 46 | echo host=localhost > .splunkrc 47 | echo port=8089 >> .splunkrc 48 | echo username=admin >> .splunkrc 49 | echo password=changed! >> .splunkrc 50 | echo scheme=https >> .splunkrc 51 | echo version=${{ matrix.splunk }} >> .splunkrc 52 | - name: Run npm install 53 | working-directory: ./javascript 54 | run: npm install 55 | - name: Test Execution 56 | working-directory: ./javascript 57 | run: ./node_modules/mocha/bin/mocha test_examples.js 58 | shell: sh 59 | -------------------------------------------------------------------------------- /.github/workflows/python-test.yml: -------------------------------------------------------------------------------- 1 | name: Python CI 2 | 3 | on: 4 | workflow_dispatch: 5 | push: 6 | paths: 7 | - 'python/**' 8 | 9 | jobs: 10 | build: 11 | runs-on: ${{ matrix.os }} 12 | strategy: 13 | matrix: 14 | os: 15 | - ubuntu-latest 16 | python: [3.9, 3.13 ] 17 | splunk-version: 18 | - "8.0" 19 | - "latest" 20 | fail-fast: false 21 | 22 | services: 23 | splunk: 24 | image: splunk/splunk:${{matrix.splunk-version}} 25 | env: 26 | SPLUNK_START_ARGS: --accept-license 27 | SPLUNK_HEC_TOKEN: 11111111-1111-1111-1111-1111111111113 28 | SPLUNK_PASSWORD: changed! 29 | SPLUNK_APPS_URL: https://github.com/splunk/sdk-app-collection/releases/download/v1.1.0/sdkappcollection.tgz 30 | ports: 31 | - 8000:8000 32 | - 8088:8088 33 | - 8089:8089 34 | 35 | steps: 36 | - uses: actions/checkout@v2 37 | - name: Setup Python 38 | uses: actions/setup-python@v2 39 | with: 40 | python-version: ${{ matrix.python }} 41 | - name: Install tox 42 | working-directory: ./python 43 | run: pip install tox 44 | - name: Install splunk-sdk 45 | working-directory: ./python 46 | run: pip install splunk-sdk 47 | - name: Test Execution 48 | working-directory: ./python 49 | run: tox -e py 50 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # text reset 2 | NO_COLOR=\033[0m 3 | # green 4 | OK_COLOR=\033[32;01m 5 | # red 6 | ERROR_COLOR=\033[31;01m 7 | # cyan 8 | WARN_COLOR=\033[36;01m 9 | # yellow 10 | ATTN_COLOR=\033[33;01m 11 | 12 | ROOT_DIR := $(shell git rev-parse --show-toplevel) 13 | 14 | VERSION := `git describe --tags --dirty 2>/dev/null` 15 | COMMITHASH := `git rev-parse --short HEAD 2>/dev/null` 16 | DATE := `date "+%FT%T%z"` 17 | 18 | CONTAINER_NAME := 'splunk-app-examples' 19 | 20 | .PHONY: all 21 | all: restart 22 | 23 | init: 24 | @echo "$(ATTN_COLOR)==> init $(NO_COLOR)" 25 | 26 | .PHONY: up 27 | up: 28 | @echo "$(ATTN_COLOR)==> up $(NO_COLOR)" 29 | @pip install -r requirements.txt -t lib --upgrade 30 | @docker-compose up -d 31 | 32 | .PHONY: remove 33 | remove: 34 | @echo "$(ATTN_COLOR)==> rm $(NO_COLOR)" 35 | @docker-compose rm -f -s 36 | 37 | .PHONY: wait_up 38 | wait_up: 39 | @echo "$(ATTN_COLOR)==> wait_up $(NO_COLOR)" 40 | @for i in `seq 0 180`; do if docker exec -it $(CONTAINER_NAME) /sbin/checkstate.sh &> /dev/null; then break; fi; printf "\rWaiting for Splunk for %s seconds..." $$i; sleep 1; done 41 | 42 | .PHONY: down 43 | down: 44 | @echo "$(ATTN_COLOR)==> down $(NO_COLOR)" 45 | @docker-compose stop 46 | 47 | .PHONY: start 48 | start: up wait_up 49 | 50 | .PHONY: restart 51 | restart: down start 52 | 53 | .PHONY: refresh 54 | refresh: remove start 55 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # splunk-app-examples 2 | 3 | ## Examples Docker Container 4 | 5 | ### Requirements 6 | 7 | - Python 8 | - Docker 9 | 10 | ### Starting up 11 | 12 | ``` 13 | make up 14 | ``` 15 | 16 | ### Run app examples on Splunk Cloud Platform 17 | The Splunk App Example repository contains several examples, such as Custom Search Commands, Modular Inputs, and more. For information about running these examples in a Splunk Cloud Platform environment, see [Deploy and manage private apps in Splunk Cloud Platform](https://dev.splunk.com/enterprise/docs/releaseapps/manageprivatecloud/). 18 | -------------------------------------------------------------------------------- /custom_alert_actions/slack_alerts/appserver/static/appIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/splunk/splunk-app-examples/65aca5e3336cdf86acc09e1395aef1243b8ca925/custom_alert_actions/slack_alerts/appserver/static/appIcon.png -------------------------------------------------------------------------------- /custom_alert_actions/slack_alerts/appserver/static/slack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/splunk/splunk-app-examples/65aca5e3336cdf86acc09e1395aef1243b8ca925/custom_alert_actions/slack_alerts/appserver/static/slack.png -------------------------------------------------------------------------------- /custom_alert_actions/slack_alerts/appserver/templates/setup.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
10 | 1. Edit src/splunkConfig.js
to input your Splunk host/port information and restart this project using npm start
.
11 |
14 | 2. Enter credentials below and click Search
to login, run a sample search, and display the results.
15 |
The open items are as follows:
3 |{{col}} | 8 | %end 9 |
29 | 7 | Hello! You created this app using the 8 | Module 1: Get Started 9 | tutorial on the Splunk Developer Portal. 10 |
11 | 12 |7 | Hello! You created this app using the 8 | Module 1: Get Started 9 | tutorial on the Splunk Developer Portal. 10 |
11 | 12 |7 | Hello! You created this app using the 8 | Module 01: Get Started 9 | tutorial on the Splunk Developer Portal. 10 |
11 | 12 |7 | Hello! You created this app using the 8 | Module 01: Get Started 9 | tutorial on the Splunk Developer Portal. 10 |
11 | 12 |