zinc-client

command module
v0.0.0-...-16de90b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

README

zinc-client

同步日志文件到 zincsearch

说明:为了能够快速将普通文本导入zincsearch而写,内置了Grok的解析器,能够处理单行文本,该工具只是实验性产物,临时解决自己的需求,如果有同类需求可以参考本项目进行二次开发。

使用方法

Usage of zinc-client:
  -file string
        log filepath (default "access.log")
  -index string
        zincsearch index name (default "index_name")
  -password string
        zincsearch password (default "admin")
  -thread int
        thread num (default 4)
  -url string
        zincsearch api host (default "http://localhost:4080")
  -username string
        zincsearch username (default "admin")

示例

$ zinc-client -file access.log -index index_name -url http://localhost:4080 -username admin -password admin

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL