All Projects → Preetam → Mysqllog

Preetam / Mysqllog

Licence: mit
Lightweight MySQL slow query log parser in Go

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Mysqllog

Matomo
Liberating Web Analytics. Star us on Github? +1. Matomo is the leading open alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. We love Pull Requests!
Stars: ✭ 15,711 (+54075.86%)
Mutual labels:  mysql, log
Activity
A PHP API to log anything anywhere
Stars: ✭ 44 (+51.72%)
Mutual labels:  mysql, log
Laravel Log To Db
Custom Laravel and Lumen 5.6+ Log channel handler that can store log events to SQL or MongoDB databases. Uses Laravel/Monolog native logging functionality.
Stars: ✭ 76 (+162.07%)
Mutual labels:  mysql, log
Jsqlparser
JSqlParser parses an SQL statement and translate it into a hierarchy of Java classes. The generated hierarchy can be navigated using the Visitor Pattern
Stars: ✭ 3,405 (+11641.38%)
Mutual labels:  parser, mysql
Sql Parser
A validating SQL lexer and parser with a focus on MySQL dialect.
Stars: ✭ 284 (+879.31%)
Mutual labels:  parser, mysql
Pimpmylog
🍭 Log viewer for your web server
Stars: ✭ 564 (+1844.83%)
Mutual labels:  parser, log
Schemalex
Generate difference sql of two mysql schema
Stars: ✭ 356 (+1127.59%)
Mutual labels:  parser, mysql
Adenium
Adenium Normalizer
Stars: ✭ 29 (+0%)
Mutual labels:  parser, log
Streamcaster
Live streaming platform built with Node.js and React
Stars: ✭ 20 (-31.03%)
Mutual labels:  mysql
Ecommerce
A powerful and lightweight eCommerce platform using ReactJs, Graphql, PHP, and Mysql.
Stars: ✭ 28 (-3.45%)
Mutual labels:  mysql
Algebra Latex
Parse and calculate latex formatted math
Stars: ✭ 20 (-31.03%)
Mutual labels:  parser
Docker Nginx Php Mysql
Docker With Nginx PHP 7.2 And Mysql 5.x for developer
Stars: ✭ 21 (-27.59%)
Mutual labels:  mysql
Dtool
数据生成器,数据库工具,数据库填充,伪数据,faker,mysql数据字典,数据库比对
Stars: ✭ 28 (-3.45%)
Mutual labels:  mysql
Eosio sql plugin
EOSIO sql database plugin
Stars: ✭ 21 (-27.59%)
Mutual labels:  mysql
Cse2102
Stars: ✭ 30 (+3.45%)
Mutual labels:  mysql
D Prolog
A Prolog implementation in D language
Stars: ✭ 20 (-31.03%)
Mutual labels:  parser
Python Stream
更优雅的流式数据处理方式
Stars: ✭ 20 (-31.03%)
Mutual labels:  log
Python Database Sanitizer
Python based database sanitizer for removing sensitive data from your database dumps
Stars: ✭ 29 (+0%)
Mutual labels:  mysql
Errorstacks
Tiny library to parse error stack traces
Stars: ✭ 29 (+0%)
Mutual labels:  parser
Lfuzzer
Fuzzing Parsers with Tokens
Stars: ✭ 28 (-3.45%)
Mutual labels:  parser

mysqllog GoDoc CircleCI

This package provides a simple MySQL slow query log parser.

Example: Parse a log from stdin and print events as JSON

package main

import (
	"bufio"
	"encoding/json"
	"fmt"
	"os"

	"github.com/Preetam/mysqllog"
)

func main() {
	p := &mysqllog.Parser{}
	reader := bufio.NewReader(os.Stdin)
	for line, err := reader.ReadString('\n'); err == nil; line, err = reader.ReadString('\n') {
		event := p.ConsumeLine(line)
		if event != nil {
			b, _ := json.Marshal(event)
			fmt.Printf("%s\n", b)
		}
	}
}

License

MIT (see LICENSE)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].