Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to run the application in a standalone mode? #411

Open
bigman3 opened this issue Nov 5, 2020 · 3 comments
Open

Is it possible to run the application in a standalone mode? #411

bigman3 opened this issue Nov 5, 2020 · 3 comments

Comments

@bigman3
Copy link

bigman3 commented Nov 5, 2020

Was wondering if it's possible running the server+angular application in a standalone mode, (with all the changes required and also) by pointing ES endpoint to something external ?

(express-server or something like that)

what sort of changes would I need to do in order to get it working, in high level?

thanks in advanced

@sivasamyk
Copy link
Owner

It would require some effort to run logtrail in standalone mode since it has dependencies on Kibana API. Is the external endpoint an ES compatible endpoint to something different?

@bigman3
Copy link
Author

bigman3 commented Nov 12, 2020

@sivasamyk Thanks you for the response.

The external endpoint is to Elasticsearch cluster, aws managed (currently no support for plugins).

I'll gladly make a pull request (we can work the details out) if such approach is possible...

basically I've tried to modify node dependencies to be pulled independently from npm (and not just to rely on existence), but had some bootstrap failures , as there are explicit invocation to run kibana application.

At that point I stopped to consult here first.

so wdyt?

@sivasamyk
Copy link
Owner

sivasamyk commented Nov 16, 2020

At a high level, we need to make the following changes:

  • the server uses kibana elasticsearch plugin to fetch data. This needs to be changed to elasticsearch javascript API. - server.js
  • need to steps to server router since currently the endpoints are routed using kibana router - index.js
  • client - The app is loaded as a plugin to kibana. we need to remove this and create a standalone angular app - index.js and app.js. This might be one change that takes time.
  • The plugin does not depend on the data store in kibana index. It has its own config file/index. So with the above changes, it should be doable.

PR is welcome. I would say we can maintain the PR in a separate branch rather than merging to master since it will obviously contain breaking changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants