openreplay/ee/quickwit
2023-01-20 16:41:57 +01:00
..
msgcodec Add 'ee/quickwit/' from commit '2ad4f4ea124232274bc09ab1f1faf2581053e619' 2022-08-01 11:27:57 +02:00
.gitignore Add 'ee/quickwit/' from commit '2ad4f4ea124232274bc09ab1f1faf2581053e619' 2022-08-01 11:27:57 +02:00
clean.sh Add 'ee/quickwit/' from commit '2ad4f4ea124232274bc09ab1f1faf2581053e619' 2022-08-01 11:27:57 +02:00
consumer.py Added default env variables 2023-01-20 16:34:35 +01:00
create_kafka_index.sh Add 'ee/quickwit/' from commit '2ad4f4ea124232274bc09ab1f1faf2581053e619' 2022-08-01 11:27:57 +02:00
create_sources.sh Add 'ee/quickwit/' from commit '2ad4f4ea124232274bc09ab1f1faf2581053e619' 2022-08-01 11:27:57 +02:00
Dockerfile Added default env variables 2023-01-20 16:34:35 +01:00
entrypoint.sh Changed module kafka-python to confluent-kafka 2023-01-20 09:49:25 +01:00
env.default Changed default kafka topic name to ee-quickwit 2023-01-20 16:41:57 +01:00
index-config-fetch.yaml Changed module kafka-python to confluent-kafka 2023-01-20 09:49:25 +01:00
index-config-graphql.yaml Changed module kafka-python to confluent-kafka 2023-01-20 09:49:25 +01:00
index-config-pageevent.yaml Changed module kafka-python to confluent-kafka 2023-01-20 09:49:25 +01:00
kafka_sample.py Add 'ee/quickwit/' from commit '2ad4f4ea124232274bc09ab1f1faf2581053e619' 2022-08-01 11:27:57 +02:00
README.md Add 'ee/quickwit/' from commit '2ad4f4ea124232274bc09ab1f1faf2581053e619' 2022-08-01 11:27:57 +02:00
requirements.txt Changed module kafka-python to confluent-kafka 2023-01-20 09:49:25 +01:00
run_quickwit.sh Add 'ee/quickwit/' from commit '2ad4f4ea124232274bc09ab1f1faf2581053e619' 2022-08-01 11:27:57 +02:00
s3-config-listen.yaml Add 'ee/quickwit/' from commit '2ad4f4ea124232274bc09ab1f1faf2581053e619' 2022-08-01 11:27:57 +02:00
s3-config.yaml Add 'ee/quickwit/' from commit '2ad4f4ea124232274bc09ab1f1faf2581053e619' 2022-08-01 11:27:57 +02:00
source-fetch.yaml Add 'ee/quickwit/' from commit '2ad4f4ea124232274bc09ab1f1faf2581053e619' 2022-08-01 11:27:57 +02:00
source-graphql.yaml Add 'ee/quickwit/' from commit '2ad4f4ea124232274bc09ab1f1faf2581053e619' 2022-08-01 11:27:57 +02:00
source-pageevent.yaml Add 'ee/quickwit/' from commit '2ad4f4ea124232274bc09ab1f1faf2581053e619' 2022-08-01 11:27:57 +02:00

Quickwit for kafka messages (S3 storage)

index

  1. Setup
  2. Deploy

Setup

This setup is made using Docker, make changes to the files accordingly to run it locally.

In order to connect to AWS S3 service the aws credentials must be defined in the environment

export aws_access_key_id={your_aws_access_key_id}
export aws_secret_access_key={your_aws_secret_access_key}
export aws_region={bucket_region}

In the file kafka-source.yaml replace the bootstap.server with the address of your kafka service and uncomment to activate ssl protocol if needed.

Deploy

To create the index 'quickwit-kafka' run the command:

bash create_kafka_index.sh

Having the topic 'quickwit-kafka' in the kafka server defined in the kafka-source.yaml, the connection between the created index and the topic can be achieved by running the command:

bash create_source.sh

To delete both the index and the source connection run the command:

bash clean.sh

To deploy the indexer, search and UI services run the command:

bash run_quickwit.sh

UI server will start at localhost:7280. The api can also be called through the url http://127.0.0.1:7280/api/v1/quickwit-kafka/search?query={your_query} for example

curl "http://127.0.0.1:7280/api/v1/quickwit-kafka/search?query=body:error"