The new notebook shell in the dev docker config #1515
Replies: 3 comments 5 replies
-
Let's take a look at an example, let's start by import and connect to a sketch. This will connect the sketch, create a Another example is to make a simple query, use the "Query a sketch using a button and a form" snippet and you will see: There you can enter a search query, even put out a time filter on the query and hit the button. What that does it to generate a
|
Beta Was this translation helpful? Give feedback.
-
FAQ: Why do I not see the other Timesketch Notebooks? |
Beta Was this translation helpful? Give feedback.
-
Hi @kiddinn and thank you for publishing this documentation. I'm completely new to Jupyter notebooks so this is a really cool new direction for me. I spun up the notebook container after having editing the docker-compose.yml file to user the right port and mounting the .timesketchrc & .timesketch.token files. Connecting and querying a sketch on my Timesketch server worked but nothing is shown in the snippets area. I reviewed the conversation between you and @lucky-luk3 but from what I could tell that was centered around getting the snippets working for lucky in his own server, rather than using the provided analyst notebook. In any case, if I go into the notebook container I do see that I have the Do you know what the issue could be? |
Beta Was this translation helpful? Give feedback.
-
When you start the dev docker using
$ cd docker/dev $ sudo docker-compose up -d
You get a new notebook container, built on top of picatrix, but customized a bit for timesketch. You can access it using either http://localhost:8844 or http://localhost:8844/?token=timesketch
If you use the second URL you don't have to authenticate, otherwise you can type in
timesketch
as the password for the container.This gives you a container that maps the /tmp/ folder of your machine (you can change that by editing the docker-compose.yml file).
After typing in the password you get prompted by a notebook like this:
The first step is to create a new notebook using the drop down menu and selecting a new
python 3
book. Selecting that will create a new notebook that is empty, doesn't contain a single line of code in it. To help with populating the notebook with any data you can now use thesnippets
menu:There you can select any of the example code and that injects some code into the notebook.
Beta Was this translation helpful? Give feedback.
All reactions