Giter Club home page Giter Club logo

log-insight's Introduction

Log-Insight

Log parse, comment, mark, filter quickly and finally find out the root cause.

Server API

POST /api/logfiles

Upload a log file, parse log and save in DB.

GET /api/logfiles

List all log files.

Response

[
  {
    id:1,
    filename:"foo.log",
    createdAt:"2021-08-11 12:00:12"
  }
]

DELETE /api/logfile/:id

Delete log file and related stuff.

GET /api/logfile/:fileid

Show logs in log file

Parameter type explaination
omit bool include omit lines or not, default false
token string search token, match content of log
marks enum array mark type, 0 none, 1 red 2 green 3 orange 4 blue
remark bool only remarked lines or include not remarked lines

PUT /api/log/:logid

Comment or mark a log

Parameter type explaination
omit bool wether omit the log line
remark string add comment the log line
mark enum mark type,, 0 none, 1 red 2 green 3 orange 4 blue

GET /api/logfile/:fileid/config

Get logfile config

Response

[
  {
    name:"time",
    expression:"^\[\d{13}\]",
    priority:1
  }
]

POST /api/logfile/:fileid/configs

Add logfile config

Parameter type explaination
name string column name
expression string column extract expression

PUT /api/logfile/:fileid/config/:configid

Update logfile config

Parameter type explaination
name string column name
expression string column extract expression
priority integer display priority

DELETE /api/logfile/:fileid/config/:configid

Delete a logfile config.

log-insight's People

Contributors

xiunen avatar

Watchers

 avatar  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.