cx_scroll_query
Description
I created the cx_scroll_query tool to retrieve logs from Coralogix teams faster and easier. It executes HTTP requests to Coralogix ES API (https://coralogix.com/tutorials/elastic-api/)
List of files
- config.txt - Set your ES key and the cluster once.
- ES_KEY - It is your ES key which you can find at https://<your team url>/#/settings/account/api_key.
- CLUSTER - It can be EU (coralogix.com), IN (app.coralogix.in), US (app.coralogix.us). By default: EU.
- cx_scroll_query - the tool compiled on MacOS
- cx_scroll_query.exe - the tool compiled on Windows.
- main.go - the source file
- query.txt - a file with ES query. It contains an example
Usage
- Download the following files: cx_scroll_query (or cx_scroll_query.exe), config.txt and query.txt to one directory.
- Open the terminal on Mac or Command Prompt (cmd) on Windows and change to the directory where you downloaded files.
- Only on Mac: Add executable permission to the script. Execute:
chmod +x cx_scroll_query
- Update query.txt with your Elastic query.
- Update config.txt with your ES key and cluster.
- Run the script:
On Mac:
./cx_scroll_query
On Windows:
cx_scroll_query.exe
- It will create new directory query_result_files and will save files with results there.
Development
If you need to compile the tool for your platform
Requirements
Build
- Create a directory (for example: cx_scroll_query)
- Download files.
- Execute:
$ make