The Log Analysis Service in Security Center allows you to export logs to your local machine.
You can download the logs on this page (in CSV format) or all logs (in TXT format) to your local machine.
Procedure
- Log on to the Security Center console.
- On the left-side navigation pane, click Log Analysis.
- On the Raw Logs page, click Download Logs
in the lower-right corner to open the Log Download dialog box.
- In the Log Download dialog box, click Download Logs of Current Page to export the log entries displayed on this page into a file in CSV format.
- You can also click Download all Logs in the CLI Console to download all the logs.
- Click Documentation in the Log Download dialog box to go to the page that describes how to install command-line tools.
- Install the command line tools
- Click Security information management to view and copy the current user's access ID and access key.
- Click Copy Command and replace
access ID in step 2
andaccess key in step 2
with the current user's access ID and access key. - Execute the command in the CLI command-line tool.
After the command has been executed, all logs of Security Center are automatically downloaded and saved in the download_data.txt file in the current working directory.