This is a small demo of what could be achieved by indexing source code into Elasticsearch. The demo shows how the source can be integrated with existing observability features in Kibana. E.g. stack traces in Discover plugin and APM errors that link back to the code.
- Start the stack
docker-compose -f example/docker-compose.yml up -d
- Check out the demo Kibana branch
- Mount the Kibana plugin into the Kibana repository
ln -s <kibana-path>/scode <code-search-path>/kibana-plugin
- Start Kibana
yarn start
- Run the example project. This also indexes the source code into the Elasticsearch container and generates some logs that are indexed by Filebeat.
sbt 'example/runMain foo.Foo'
- Open the local Kibana. Create a
filebeat-*
index pattern. Change the pattern'serror.stack_trace
field format to "Java Stack Trace", and change thelog.logger
field format to "Logger Classname". - Explore the new features added by the demo. Screenshots below: