Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ivfisunov/splunk-react-app

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Splunk React App

Project for setup React application in Splunk Web

  1. Create in Splunk a new App:
    • For name, enter - "reactapp"
    • For folder name, enter - "reactapp"
  2. Open "reactapp", click Dashboards and then "Create New Dashboard", title it - React
  3. Open $SPLUNK_HOME/etc/apps/reactapp directory, create folders 'appserver/static' and structure project similar with repo (or just delete everything in reactapp directory and clone the repo)
  4. Open $SPLUNK_HOME/etc/apps/reactapp/local/data/ui/views/react.xml and replace with
<dashboard script="index.js" stylesheet='app.css' theme="dark" hideEdit="true">
  <label>React</label>
  <row>
    <panel>
      <html>
        <div id="root"/>
      </html>
    </panel>
  </row>
</dashboard>
  1. Run npm install command from /appserver/static directory to install dependencies
  2. And npm run build to make /dist/index_bundle.js file and resource directory
  3. Debug/refresh Splunk and open React dashboard from "Reactapp" application
Morty Proxy This is a proxified and sanitized view of the page, visit original site.