---
title: "vGateway CIFS/SMB Audit Logs"
slug: "vgateway-cifssmb-audit-logs"
description: "This KB article details the steps to configure CIFS/SMB audit logging on a vGateway for the Expedient Cloud File Storage platform."
tags: ["vGateway", "cifs", "smb", "audit logging"]
updated: 2021-04-30T13:36:37Z
published: 2021-04-30T13:36:37Z
canonical: "kb.expedient.com/vgateway-cifssmb-audit-logs"
stale: true
---

> ## Documentation Index
> Fetch the complete documentation index at: https://kb.expedient.com/llms.txt
> Use this file to discover all available pages before exploring further.

# vGateway CIFS/SMB Audit Logs

A vGateway appliance can be optionally configured to log SMB/CIFS events that occur locally on the device. This can be extremely useful when you need a log of modified files to troubleshoot issues.

#### Configure the Audit Log Share

Unlike any other shared you will create, the audit logging functionality requires a local share. This means the data will remain only on the local vGateway and not be entered into the Global File System.

1. [Login](/v1/docs/login-to-cloud-file-storage) to the vGateway
2. Select **Share** and then **Shares**  
**![](https://cdn.document360.io/69e9f9c7-5da8-45e7-a671-4b8287f36122/Images/Documentation/image-1619788163841.png)**
3. Select **New Share**
  1. Select **vol1** and select **New Folder**  
**![](https://cdn.document360.io/69e9f9c7-5da8-45e7-a671-4b8287f36122/Images/Documentation/image-1619788249240.png)**
  2. Enter **auditlogs** and select **Save**   
**![](https://cdn.document360.io/69e9f9c7-5da8-45e7-a671-4b8287f36122/Images/Documentation/image-1619788281320.png)**
  3. Select the newly created **auditlogs** folder and click **Next**  
**![](https://cdn.document360.io/69e9f9c7-5da8-45e7-a671-4b8287f36122/Images/Documentation/image-1619788319000.png)**
  4. Name the share **auditlogs** and select **Next**   
**![](https://cdn.document360.io/69e9f9c7-5da8-45e7-a671-4b8287f36122/Images/Documentation/image-1619788358579.png)**
  5. Reconfigure the **Sharing Protocols** and select **Next**
    1. Windows File Sharing:         **Windows ACL Mode**
    2. Block Extentions:                  **Disabled**
    3. Client Caching:                      **Disabled**
    4. FTP:                                       **Disabled**
    5. Search:                                   **Disabled**  
**![](https://cdn.document360.io/69e9f9c7-5da8-45e7-a671-4b8287f36122/Images/Documentation/image-1619788518419.png)**
  6. Skip **NFS** configurations by selecting **Next**
  7. **Configure Permissions**on the share
    1. Select the **Trash Can** icon nect to **Everyone** to remove the permissions
    2. Locate the appropriate **Group** to allow access to the **auditlogs**share
      1. This share should be restrictured to **Administrator Access**
    3. Ensure the proper permissions have been set and select **Next**  
**![](https://cdn.document360.io/69e9f9c7-5da8-45e7-a671-4b8287f36122/Images/Documentation/image-1619788646404.png)**
    4. Select **Finsih**  
**![](https://cdn.document360.io/69e9f9c7-5da8-45e7-a671-4b8287f36122/Images/Documentation/image-1619788671546.png)**
    5. Verify your share has been created

#### Configure the Audit Logs

Now that you have configured a share to contain the logs, we can enable the logging functionality.

1. [Login](/v1/docs/login-to-cloud-file-storage) to the vGateway
2. Select **Event Log** and then **Audit Logs**  
![](https://cdn.document360.io/69e9f9c7-5da8-45e7-a671-4b8287f36122/Images/Documentation/image-1619788893917.png)
3. Configure the Audit Logs and select **Save**
  1. Enable Audit Logs:            **Saved**
  2. Save log files to:                **auditlogs**
  3. Rotate Days:                      **Default (1) or *Config***
  4. Rotate Size:                        **Default (100MB) or** ***Config***
  5. Closed Days:                      **Default (30) or** ***Config***
  6. Events to Log:                    **Default or Client Setting**
    1. Default events are ****Create Files Write Data, Create Folders Append Data, Write Extended Attributes,** **Delete Subfolders and Files, Write Attributes, Delete, Change Permissions, Change Owner****  
Note that the amount of events logged is directly proportional to the amount of vGateway resources consumed. Logging more events will cause higher virtual hardware utilization and may impact performance.
  7. Human Readable:Audit logs will not be sent to the share that was configured earlier
4. To view logs navigate to the share and view the log files  
![](https://cdn.document360.io/69e9f9c7-5da8-45e7-a671-4b8287f36122/Images/Documentation/image-1619788881425.png)
