opção
Lar Lista de Prompts de IA Terminal/Intérprete Geração de script de localização de erros em logs Linux

Geração de script de localização de erros em logs Linux

{:__('collect %s',Geração de script de localização de erros em logs Linux)}

Gera automaticamente um script bash executável para inspeção de logs de servidores Linux empresariais, para filtrar e contar rapidamente registros de erros em logs do sistema.

Conteúdo do prompt Copiar Copiar

Generate a directly runnable bash script for the daily operation and maintenance requirement of locating error records in enterprise server system logs. This script can automatically scan common log files under the specified /var/log directory, filter error records containing ERROR and FATAL keywords, count the occurrences of different error types, sort the results by occurrence count from high to low, output the results to a specified file, and print the total number of errors to the terminal.

Copiar Copiar

Gere um script bash diretamente executável para a necessidade de localizar registros de erros em logs do sistema de servidores empresariais na manutenção diária. Este script pode verificar automaticamente arquivos de log comuns no diretório especificado /var/log, filtrar registros de erros contendo as palavras-chave ERROR e FATAL, contar a ocorrência de diferentes tipos de erros, classificar os resultados por contagem de ocorrências em ordem decrescente, enviar os resultados para um arquivo especificado e imprimir o número total de erros no terminal.

Copiar Copiar
Comentários (0)
0/300

Recomendação

Ferramenta de renomeação em lote Bash
Write an executable Bash script that batch renames all files with specified suffix in a given working directory. All renamed files get a unified custom prefix, sorted ascending by creation time and assigned incrementing sequence numbers while keeping original extensions. It outputs total files to process before execution, skips and alerts on name conflicts, and outputs the number of successfully renamed files when done.
Ferramenta de Solução de Erros de Log Linux
You will help a DevOps engineer analyze a provided snippet of Linux server system logs, find abnormal errors inside, pinpoint the specific root cause of the error, and give corresponding directly executable terminal commands and operation instructions to help complete the fault fix quickly.
Solucionador de Erros de Log do Linux
Analyze the raw Linux system service log content provided by the user, find recorded error information, confirm the specific error type, involved service module and corresponding log line number, organize directly executable troubleshooting steps and repair solutions, and present the result in clear plain language.
Gerador de Script de Análise de Uso de Disco Linux
Based on the provided target directory path and disk usage threshold, output a complete Shell script that can run directly in a Linux terminal. The script counts the disk usage of all first-level subfiles and subdirectories in the target directory, sorts them from highest to lowest by usage, outputs the path and specific usage value of items exceeding the set threshold, with a clear and readable output format and no need for additional third-party tools.
Solucionador de erros de logs Linux
Analyze the Linux system log snippets provided by the user, find the specific error that causes the target service to fail to start, organize a clear repair plan, and give terminal commands that can be directly copied and executed without extra concept explanations.
Ferramenta de Depuração de Erros em Scripts Bash
You work on faulty running Linux Bash scripts submitted by operation and maintenance staff, sort out the original business goal the script aims to achieve, check the specific location of runtime errors section by section, find the root cause of errors, output the complete runnable script after fixing errors, and explain the cause of each error and the fixing idea in concise words.
OR