采集常見錯誤類型
更新時間 2025-09-26 18:22:21
最近更新時間: 2025-09-26 18:22:21
分享文章
本文主要介紹采集常見錯誤類型。
以下為常見的錯誤類型以及對應的解決方法說明,可供參考。
| LTS 錯誤碼 | 錯誤說明 | 英文說明 | 解決方法 |
|---|---|---|---|
| LTS_1400 | 數據包從產生到發送的過程中等待的時間較長 | The waiting time for data packets from generation to transmission is relatively long | 檢查發送是否正常,或是否存在數據量超過默認配置、配額不足或網絡存在問題。 |
| LTS_1401 | 無權限讀取指定文件 | No permission to read the specified file | 檢查lmtagent的啟動賬號,建議以root方式啟動。 切要采集的日志目錄具備讀權限 |
| LTS_1402 | 行首正則與日志行首匹配失敗,無法對日志做分行 | Failed to match the beginning of the line with the log entry's starting pattern, unable to split the log into lines | 檢查行首正則正確性。 若是單行日志可以配置為 |
| LTS_1403 | 完整正則模式下,日志內容和正則表達式不匹配 | No match found between log content and regular expression in full regex mode | 查看錯誤詳情,重新調整正則規則適配日志原文。 |
| LTS_1404 | JSON、分隔符等模式下,由于日志格式不符合定義而解析失敗 | Parsing failed in JSON, delimiter, and other modes due to mismatched log format definitions | 查看錯誤詳情,重新調整規則適配日志原文。 |
| LTS_1405 | 采集配置不合法 | The collection configuration is invalid | 采集配置JSON格式有誤,可以通過控制臺重新編輯下發規則。 |
| LTS_1406 | 因超過服務器資源使用上限而崩潰 | Crashed due to exceeding server resource limits | 調整CPU/內存上限, 主機需要調整 /etc/systemd/system/lmtagent.service 里幾個限額項 MemoryMax/MemoryLimit/CPUQuota ; 容器需要在ccse控制臺調整日志插件的YAML文件中定義的限額項 resources.limit.cpu/resources.limit.memory。 |
| LTS_1407 | 在Linux系統中注冊日志監聽失敗,可能由于沒有文件夾權限或文件夾被刪除 | Failed to register the log listener in the Linux system, possibly due to lack of folder permissions or the folder being deleted | 檢查采集器是否有權限訪問該文件夾,或者該文件夾是否被刪除。 |
| LTS_1408 | 日志采集進度落后于日志產生進度 | Log collection is lagging behind log generation | 采集有部分延遲,應避免一個配置文件采集過多目錄,可以通過拆分配置來解決,如果持續出現錯誤可以提工單反饋。 |
| LTS_1409 | 日志采集進度落后于日志產生進度,且未處理的日志輪轉超過20個,開始丟棄日志 | Log collection is lagging behind log generation, and with over 20 unprocessed log rotations, logs are now being discarded |
采集延遲較多,應避免一個配置文件采集過多目錄,可以通過拆分配置來解決,如果持續出現錯誤可以提工單反饋。
|
| LTS_1410 | 沒有日志監控目錄讀取權限 | No read permission for the log monitoring directory | 檢查日志監控目錄是否存在。如果存在,請檢查目錄權限設置。 |
| LTS_1411 | 日志采集配置目錄中的文件數超限 | The number of files in the log collection configuration directory has exceeded the limit | 檢查采集的目錄下是否有較多文件和子目錄并合理設置監控目錄最大深度。 |
| LTS_1412 | 進程退出時日志落盤到本地超時,此時會丟棄未落盤完成的日志 | When the process exits, flushing logs to disk times out, and any unfinished logs will be discarded | 該報錯通常為采集嚴重阻塞導致,如果持續出現錯誤可以提工單反饋。 |
| LTS_1413 | 輸入源采集異常 | Input source collection exception | 查看詳細報錯,根據具體錯誤信息進一步排查。 |
| LTS_1414 | 過濾器初始化異常 | Filter initialization exception | 一般由于過濾器的正則表達式非法導致,請根據提示修復。 |
| LTS_1415 | 向聚合隊列中添加數據失敗 | Failed to add data to the aggregation queue | 數據發送過快。若真實數據量很大,可忽略。 |
| LTS_1416 | Checkpoint解析失敗 | Checkpoint parsing failed | 查看詳細報錯,根據其中檢查點內容(前1024個字節)以及具體錯誤信息進一步排查。 |
| LTS_1417 | 同時監聽的目錄數超出限制 | The number of simultaneously monitored directories exceeds the limit | 檢查當前采集配置是否包含較多的目錄數,合理設置監控目錄最大深度。 |
| LTS_1418 | 執行命令添加Docker文件映射失敗 | Failed to add Docker file mapping when executing the command | 查看詳細報錯,根據具體錯誤信息進一步排查。 |
| LTS_1419 | 無法在Docker容器中查找到指定文件 | The specified file could not be located within the Docker container | 查看詳細報錯,根據其中的容器信息以及查找的文件路徑進一步排查。 |
| LTS_1420 | service_docker_stdout插件錯誤,根據配置中的BeginLineRegex編譯失敗 | Error in service_docker_stdout plugin: failed to compile BeginLineRegex from configuration | 查看詳細報錯,檢查其中的正則表達式是否正確。 |
| LTS_1421 | 同時打開的文件對象數量超過限制 | The number of simultaneously open file objects has exceeded the limit | 一般因為當前處于采集狀態的文件數過多,請檢查采集配置是否合理。 |
| LTS_1422 | processor_split_log_regex以及 processor_split_log_string插件錯誤,無法從日志中獲取到配置中指定的SplitKey。 | Error in processor_split_log_regex and processor_split_log_string plugins: unable to extract the configured SplitKey from log data | 查看詳細報錯,檢查是否存在配置錯誤的情況。 |
| LTS_1423 | 執行LZ4壓縮發生錯誤 | Error occurred during LZ4 compression execution | 查看詳細報錯,根據具體錯誤信息進一步排查。 |
| LTS_1424 | 已打開文件數量超過限制,無法打開新的文件 | The number of open files has exceeded the limit, preventing new files from being opened | 日志采集配置目錄中的文件數超限 ,默認上限為100000,需要檢查采集配置是否通配了過多文件,調整采集規則。 |
| LTS_1425 | 打開文件出錯 | Error opening file | 文件無法打開,需要查看文件是否損壞。 |
| LTS_1426 | processor_regex插件錯誤,編譯配置中指定的Regex正則表達式失敗 | Error in processor_regex plugin: failed to compile the Regex expression specified in the configuration | 查看詳細報錯,檢查其中的正則表達式是否正確。 |
| LTS_1427 | 日志解析速度過慢 | Log parsing speed is too slow | 查看詳細報錯,根據其中的日志數量、緩沖區大小、解析時間來確定是否正常。 如果不正常,檢查是否有其他進程占用了過多的CPU資源或是存在效率較低的復雜正則表達式等不合理的解析配置。 |
| LTS_1428 | processor_regex插件錯誤,無法從日志中找到配置中SourceKey指定的字段 | Error in processor_regex plugin: unable to locate the field specified by SourceKey in the configuration from the log data | 查看詳細報錯,檢查是否存在SourceKey配置錯誤或日志不合法的情況。 |
| LTS_1429 | processor_regex插件錯誤,匹配失敗 | Error in processor_regex plugin: match failed | 查看詳細報錯,報錯根據內容分為如下類型,請根據具體的錯誤信息進行排查。
|
| LTS_1430 | split_char以及split_string插件錯誤,無法從日志中找到配置中SourceKey指定的字段 | Error in split_char and split_string plugins: unable to locate the field specified by SourceKey in the configuration from the log data | 查看詳細報錯,檢查是否存在SourceKey配置錯誤或日志不合法的情況。 |
| LTS_1431 | processor_split_char以及processor_split_string插件錯誤,解析得到的字段數量與SplitKeys中指定的不相同 | Error in processor_split_char and processor_split_string plugins: the number of parsed fields does not match the count specified in SplitKeys | 查看詳細報錯,檢查是否存在SourceKey配置錯誤或日志不合法的情況。 |
| LTS_1432 | 解析日志時間失敗 | Failed to parse log timestamp | 正則表達式提取的時間字段是否正確。 指定的時間字段內容是否匹配配置中的時間表達式。 |
| LTS_1433 | checkpoint相關錯誤 | Checkpoint-related error | 讀取checkpoint文件格式異常,需要確認文件是否被修改,可能導致重采,如果持續出現錯誤可以提工單反饋。 |
| LTS_1434 | inotify監聽超限 | inotify watch limit exceeded | 監聽目錄數超限 ,默認上限為3000,需要檢查采集配置是否通配了過多文件,調整采集規則。 |
| LTS_1435 | 采集器啟動配置不存在或解析失敗 | Collector startup configuration does not exist or failed to parse | 主機采集器啟動配置格式有誤,需要確認文件是否被修改,如果持續出現錯誤可以提工單反饋。 |
| LTS_1436 | 采集隊列已滿 | The collection queue is full | 網絡中斷等原因導致數據無法上報,反壓隊列滿,會持續重試1h等待恢復,如果持續出現錯誤可以提工單反饋。 |
| LTS_1437 | 本地目錄下配置過多 | Too many configurations in the local directory | 查看詳細報錯,根據具體錯誤信息進一步排查。 |
| LTS_1438 | 采集器上報插件初始化失敗 | Collector reporting plugin initialization failed | 先確認VPCE私網域名是正常開通。如果持續出現錯誤可以提工單反饋。 |
| LTS_1439 | 采集器上報插件endpoint無法連接 | Unable to connect to the endpoint of the collector reporting plugin | 先確認VPCE私網域名是正常開通,以及本地DNS到VPCE域名是否能ping通。如果持續出現錯誤可以提工單反饋。 |
| LTS_1440 | 上報日志網關中出現錯誤 | Error occurred in the log gateway during reporting | token失效或者到日志網關的網絡不通。如果是token失效需確認AK/SK是否有getToken權限。 |
| LTS_1441 | 上報日志網關后返回錯誤 | The log gateway returned an error after reporting | 查看詳細報錯,根據具體錯誤信息進一步排查。 |
| LTS_1442 | 獲取token失敗 | Failed to retrieve token | 用戶指定的AK/SK 獲取token失敗,可能是未正確授權。查看詳細報錯,根據具體錯誤信息進一步排查。 |
| LTS_1443 | 采集內部錯誤 | Internal collection error | 未定義在上面詳細錯誤碼的都歸在此類,需要查看詳細報錯,根據具體錯誤信息進一步排查。 |