Enable Windows IIS Logs
Overview
IIS uses a flexible and efficient logging architecture. When a loggable event—usually an HTTP transaction—occurs, IIS calls the selected logging module.
Configuration
IIS logs
- Open IIS Manager.
- In the Connections tree view, select your website.
- In Features View, double-click Logging.
- On the Logging page, in the Log file section under Format, select W3C log file format (with default fields).
- Under Directory, specify the path where the log file should be stored. The default is
%SystemDrive%\inetpub\logs\LogFiles
. - Click Apply in the Actions pane.
Configuration sample:
Endpoint Agent Manager
Using ansible roles (recommended)
- Search for
options.yaml
file in the Devo EA Manager installer (usually inplaybooks/roles/deam-packs/files/devo-packs/options.yaml
). - Open it with your preferred text editor, search for the Windows section and add a custom configuration for
fetchfiles
with your previously configured log file path with a custom tag.
The following screenshots shows a configuration sample:
If you are running a new deployment, continue with the normal process of deployment, the change will not be applied until the devo-endpoint-agent
is run.
If you have an existing deployment, run the deam-packs
playbook from your deployer folder to apply the configuration: ansible-playbook -i inventories/<your_inventory_name>.yaml playbooks/deam-packs.yaml.
config_refresh
parameter. If the configuration is not refreshed automatically after the period has passed, you might need to restart the endpoints so that the configuration takes place.Use admin page in EA Manager Web UI
options.yaml
file in the ansible playbook. This means that the changes in configuration done in the Web UI need to be consolidated to the options.yaml
file in the ansible playbooks before performing any new deployment in the ansible, or else the applied changes will be overwritten.- Log into your Devo EA Manager administration console (
https://<devo_ea_manager_ip>:8080
). - Once logged in, go to the osquery configuration page by adding
/settings/osquery
to the URL (example:https://<devo_ea_manager_ip>:8080/settings/osquery
) (URL for EA prior to 1.2.0 ishttps://<devo_ea_manager_ip>:8080/admin/osquery
). - You see a text editor with the loaded DEA Manager
options.yaml
file as in the following screenshot:
You must search for the windows -> devo_extensions -> fetchfiles
section and add your previously configured log file path with a custom tag as in the following sample:
Sending to Devo
These events use the fetchfiles query added by default in the DevoFetchFilesPack
pack, so if the DevoFetchFilesPack
pack is enabled, you do not need to change anything else.
Data access
By default, content files will be ingested line-by-line into Devo under box.devo_ea.files.iis.
They can also be seen in the parent table, box.devo_ea.files
.