Skip to content

IBM/spl2kql-watsonx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPL To KQL Application

Watsonx demo application for generating Kusto Query Language from Splunk Search Processing Language

Steps to setup application

Requires python3 development tools to already be installed

  1. Go to the root directory and prepare your python environment.

    python3 -m venv client-env
  2. Activate the virtual environment:

    • MacOS, Linux, and WSL using bash/zsh
    source client-env/bin/activate
    • Windows with CMD shell
    C:> client-env\Scripts\activate.bat
    • Windows with git bash
    source client-env/Scripts/activate
    • Windows with PowerShell
    PS C:> client-env\Scripts\Activate.ps1

    if there is an execution policy error, this can be changed with the following command

    PS C:> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
  3. Install the required libraries.

    pip3 install -r requirements.txt
  4. Provide Environment variables.

    # For LLM call
    WATSONX_API_KEY = <api_key>
    # Also for SERVER_URL from your watson instance.
  5. Run the application.

    python3 template.py

You can now access the application from your browser at the following URL.

http://localhost:8057

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published