Giter Site home page Giter Site logo

b4fun / ku Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 0.0 7.75 MB

Toolkit for collecting and exploring logs using pipelined query lanaguage and sqlite.

Home Page: https://github.com/b4fun/ku

License: MIT License

TypeScript 69.54% Makefile 2.14% Go 20.16% HTML 0.24% JavaScript 0.23% CSS 0.17% Dockerfile 0.02% Shell 0.07% Rust 7.42%
kql kusto logging pipelined prql sqlite

ku's People

Contributors

bcho avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ku's Issues

Reuse cli session table

Ku itself sends logs to the ku cli session table on each run. For repeated run on the same database, we should reuse this session

Slow data import

When the source log file contains large amount of logs, current insertion might be slow. We should consider batch insert to the table.

duration / time literals

for ago:

querying select * from ku_cli_26GgJgKcmoovUpimJHKWyY_raw where ts > ago(3h) limit 100
react_devtools_backend.js:4026 
        
       RpcError: query failed: unrecognized token: "3h"
    at grpc-web-transport.js:123:23

In memory usage

We should allow user to start up the tool without saving logs to disk.

Handle duplicate column names

Bad case:

haha
| extend p = 1 + 2, lines = 3 + 2
| extend q = p + lines
| take 100
q1 as (with q0 as (select 1 + 2 as p, 3 + 2 as lines, * from ku_cli_mcpxw3gjzWAA7F5KnFa3F_haha) select p + lines as q, * from q0) select * from q1 limit 100

This will yield:

q,p,lines,ts,lines:1

Where lines:1 is generated by sqlite, to distinct duplicated column names (ref). We should remove this column from the output. However, we need the "original column" information from the C API to filter this out.

Container usage

We should publish as container version and allow using in a container

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.