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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址