Automation, Orchestration, and Scripting

An administrator must write a regular expression that extracts the source IP addresses of failed logins from /var/log/auth.log. Which use of AI BEST fits this task?

Show the answer

Correct answerA. Ask an AI assistant to draft the expression and explain each part, then test it with grep against sample log lines

AI is well suited to drafting and explaining regular expressions, but the output must be tested before it is trusted. Pasting the whole log into a public service is tempting, but it exposes sensitive data to an external provider.