← 返回命令列表

Linux command

logshark 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Stream and debug JSON logs

logshark

Pipe logs from a command

cat [logfile.json] | logshark

说明

logshark is a command-line tool for debugging JSON logs. It integrates with Beats and Logstash to provide real-time log analysis, featuring JSON formatting, pretty printing with syntax highlighting, and event metrics. The TUI mode allows navigating through a list of log entries with colorful formatting, making it easier to debug and analyze structured log data from Elastic Stack and similar logging pipelines.

FAQ

What is the logshark command used for?

logshark is a command-line tool for debugging JSON logs. It integrates with Beats and Logstash to provide real-time log analysis, featuring JSON formatting, pretty printing with syntax highlighting, and event metrics. The TUI mode allows navigating through a list of log entries with colorful formatting, making it easier to debug and analyze structured log data from Elastic Stack and similar logging pipelines.

How do I run a basic logshark example?

Run `logshark` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more logshark examples?

This page includes 2 examples for logshark, plus related commands for nearby Linux tasks.