Linux command
zinc 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start Zinc server with initial admin credentials
ZINC_FIRST_ADMIN_USER=[admin] ZINC_FIRST_ADMIN_PASSWORD=[password] zinc
Start on specific port
ZINC_SERVER_PORT=[4080] zinc
Start with custom data directory
ZINC_DATA_PATH=[/var/lib/zinc] zinc
Ingest data via API
curl -u [admin:password] -X POST http://localhost:4080/api/[index]/_doc -d '{"field": "value"}'
说明
ZincSearch (formerly Zinc) is a lightweight, full-text search engine designed as an alternative to Elasticsearch. It provides log search and analytics with significantly lower resource requirements. ZincSearch features a web UI for management, REST API compatible with Elasticsearch's search syntax, and supports various data ingestion methods including bulk insert and fluentd/fluent-bit integration. The search engine is written in Go and uses Bluge as its indexing library. It runs as a single binary with embedded storage, requiring no external dependencies. Common use cases include log aggregation, application search, and replacing Elasticsearch in resource-constrained environments. The project has since evolved into OpenObserve.
FAQ
What is the zinc command used for?
ZincSearch (formerly Zinc) is a lightweight, full-text search engine designed as an alternative to Elasticsearch. It provides log search and analytics with significantly lower resource requirements. ZincSearch features a web UI for management, REST API compatible with Elasticsearch's search syntax, and supports various data ingestion methods including bulk insert and fluentd/fluent-bit integration. The search engine is written in Go and uses Bluge as its indexing library. It runs as a single binary with embedded storage, requiring no external dependencies. Common use cases include log aggregation, application search, and replacing Elasticsearch in resource-constrained environments. The project has since evolved into OpenObserve.
How do I run a basic zinc example?
Run `ZINC_FIRST_ADMIN_USER=[admin] ZINC_FIRST_ADMIN_PASSWORD=[password] zinc` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more zinc examples?
This page includes 4 examples for zinc, plus related commands for nearby Linux tasks.