opción
Hogar Lista de Prompts de IA Terminal/Intérprete Script de búsqueda de errores en registros Linux

Script de búsqueda de errores en registros Linux

{:__('collect %s',Script de búsqueda de errores en registros Linux)}

Este script escanea automáticamente los archivos de registro del sistema especificados, extrae líneas con palabras clave de error y genera un informe estadístico para simplificar la resolución de problemas diaria de los ingenieros de DevOps.

Contenido del prompt Copiar Copiar

Write a directly runnable Shell script for Linux terminal that accepts your specified log file path and error keyword, automatically scans the entire log file, extracts all lines containing the target keyword, counts the total occurrences of the error and saves the result to a specified file, helping quickly locate system abnormal operation problems.

Copiar Copiar

Escribe un script Shell ejecutable directamente en la terminal Linux que acepta la ruta del archivo de registro y la palabra clave de error que especifiques, escanea automáticamente todo el archivo de registro, extrae todas las líneas que contienen la palabra clave objetivo, cuenta el número total de ocurrencias del error y guarda el resultado en un archivo especificado, ayudando a localizar rápidamente problemas de funcionamiento anormal del sistema.

Copiar Copiar
comentario (0)
0/300

Recomendación

Herramienta de renombrado batch 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.
Solucionador de Errores en Logs de Servidor 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 errores de registros 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.
Generador de scripts de análisis 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 errores de registros 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.
Herramienta de depuración de errores de 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