Giter VIP home page Giter VIP logo

gsls's Introduction

gsls

aliyun sls tools

使用方式


Usage of ./gsls:
  -ak string
        Access Key for authentication
  -end string
        end time, unix timestamp (default "time.now()")
  -endpoint string
        sls endpoint (default "cn-hangzhou.log.aliyuncs.com")
  -logstore string
        sls logstore name (default "test-logstore")
  -project string
        sls project (default "test-project")
  -query string
        sls query expr (default "*")
  -size string
        query size (default "10")
  -sk string
        Secret Key for authentication
  -start string
        start time, unix timestamp (default "1717051210")
  -timeout string
        query timeout (default "300")

示例


// cli command
./gsls -endpoint="cn-xxx.log.aliyuncs.com" -ak="xxx" -sk="xxx" -project="xxx" -logstore="xxx" 

// response
--start sls query, req: *, start time: 2024-05-30 14:40:10 +0800 CST, end time: 2024-05-30 14:51:22.083391 +0800 CST m=+0.001372728 --
--query success! log count: 10 
, use time: 110.22594ms --

 [1] doc, content: xxx 
 [2] doc, content: xxx 
 ...
 

gsls's People

Contributors

kua-fu avatar

Watchers

 avatar

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.