From 80b808271b2c845a5e531477e10601002e6d43af Mon Sep 17 00:00:00 2001 From: Zhenchi Date: Tue, 16 Jul 2024 11:08:45 +0800 Subject: [PATCH] docs: add fulltext search to quick-start (#1063) Signed-off-by: Zhenchi --- docs/nightly/en/user-guide/logs/quick-start.md | 3 ++- docs/nightly/zh/user-guide/logs/quick-start.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/nightly/en/user-guide/logs/quick-start.md b/docs/nightly/en/user-guide/logs/quick-start.md index 4153be474..1d3811377 100644 --- a/docs/nightly/en/user-guide/logs/quick-start.md +++ b/docs/nightly/en/user-guide/logs/quick-start.md @@ -158,7 +158,7 @@ psql -h 127.0.0.1 -p 4003 -d public You can query the log table using SQL: ```sql -SELECT * FROM public.logs; +SELECT * FROM public.logs WHERE MATCHES(log, 'sendTextDataToCluster'); ``` The query result is as follows: @@ -178,6 +178,7 @@ The query result is as follows: ``` As you can see, the logs have been stored as structured logs after applying type conversions using the pipeline. This provides convenience for further querying and analysis of the logs. +Please refer to [Query Log](query-logs.md) for the specific syntax of querying logs. ## Conclusion diff --git a/docs/nightly/zh/user-guide/logs/quick-start.md b/docs/nightly/zh/user-guide/logs/quick-start.md index 3eabd837c..6030defb9 100644 --- a/docs/nightly/zh/user-guide/logs/quick-start.md +++ b/docs/nightly/zh/user-guide/logs/quick-start.md @@ -158,7 +158,7 @@ psql -h 127.0.0.1 -p 4003 -d public 可通过 SQL 查询日志表: ```sql -SELECT * FROM public.logs; +SELECT * FROM public.logs WHERE MATCHES(log, 'sendTextDataToCluster'); ``` 查询结果如下: @@ -179,6 +179,7 @@ SELECT * FROM public.logs; ``` 可以看出,通过 Pipeline 将 Log 进行类型转换后存储为结构化的日志,为日志的进一步查询和分析带来了便利。 +请参阅[查询日志](query-logs.md)以了解查询日志的具体语法。 ## 结语