-
Notifications
You must be signed in to change notification settings - Fork 129
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
Data loader elasticsearch #1490
Conversation
tweak text Co-authored-by: Philippe Rivière <fil@rezo.net>
adding empty lines should allow framework to convert the markdown (in this case, the backticks around .env) Co-authored-by: Philippe Rivière <fil@rezo.net>
adding empty lines should allow framework to convert the markdown (in this case, the backticks around .env) Co-authored-by: Philippe Rivière <fil@rezo.net>
Thanks for the initial feedback, I updated |
Thanks for the very detailed procedure — I was able to test it locally. I now have just a few more suggestions:
Another note in passing (but probably not actionable): as I was testing the setup, I was blocked as the enrollment string linked to IP address 10.100.0.2. But this address would not connect, and this prevented the installation from working at all. I realized I had to disable NordVPN, delete the whole es installation, and start again from scratch… and it worked. (I guess it's more an issue with NordVPN than with ES, but figured maybe you'd want to investigate this.) |
Great you got it working with the instructions! Getting the SSL setup right can be a bit painful. I updated the observable framework package to About Update: We now have an issue to track the problem with the different fingerprint formats: elastic/elastic-transport-js#107 |
Nope :). To clarify, it would have been great to have the correct format in that place and not have to do the call to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add curly quotes before we merge (I don't think I am allowed to push to this branch?).
I've deployed the project to https://observablehq.observablehq.cloud/framework-example-loader-elasticsearch/
fix quote Co-authored-by: Philippe Rivière <fil@rezo.net>
fix quotes Co-authored-by: Philippe Rivière <fil@rezo.net>
I guess because the branch is in my fork you cannot push to it. I commited the quote updates! Thanks for the deployment! Is there something I need to add so it gets the header with "Observable Framework" title and "View source" link? I can see it in the hello world example but not on the notebook you deployed for this data loader. |
hmm no, that was my oversight; thanks for reminding me! To deploy the examples we have to include the common configuration file which adds the specific headers:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you!
As discussed on your Community Slack, I'd like to contribute a data loader example for Elasticsearch.
The original repo I created this in can be found here:
https://github.com/walterra/observable-framework-data-loader-elasticsearch
A live view can be found here:
https://walterra.observablehq.cloud/framework-example-loader-elasticsearch/
This Observable Framework example demonstrates how to write a TypeScript data loader that runs a query on Elasticsearch using the Elasticsearch Node.js client. The data loader lives in
src/data/kibana_sample_data_logs.csv.ts
and uses the helpersrc/data/es_client.ts
.Similar to #1477, I added the output of the data loader as a static file too.
To fully reproduce the example, you need to have a setup with both Elasticsearch and Kibana running to create the sample data. Here's how to set up both on macOS:
The commands for both will output instructions how to finish the setup with security enabled. Once you have both running, you can create the sample data in Kibana via this URL: http://localhost:5601/app/home#/tutorial_directory/sampleData
Finally, create the
.env
file with the credentials shared for the userelastic
that were logged when starting Elasticsearch like this. To get the CA fingerprint for the config, run the following command from the directory you started installing Elasticsearch: