- Create in Splunk a new App:
- For name, enter - "reactapp"
- For folder name, enter - "reactapp"
- Open "reactapp", click Dashboards and then "Create New Dashboard", title it - React
- 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)
- 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>
- Run
npm install
command from /appserver/static directory to install dependencies - And
npm run build
to make /dist/index_bundle.js file and resource directory - Debug/refresh Splunk and open React dashboard from "Reactapp" application