Skip to main content

Trimming Logs with Netskope Cloud Exchange, Cloud Log Shipper (CLS)

  • 3 July 2024
  • 0 replies
  • 65 views

Trimming Logs with Netskope Cloud Exchange, Cloud Log Shipper (CLS)

 

Netskope provides rich logs for all aspects of security and connectivity but sometimes you may not want so much detail on things like the device type or OS. For example, in our DLP logs, this is the information you would get on the device. 

            "category": "Cloud Storage",

            "ccl": "low",

            "device": "iPhone 6S Plus",

            "os": "iOS  9.6",

            "owner": "dte3831@test.netskope.com",

            "policy": "policy_ga32",

            "request_id": "2459149802892628500",

            "scan_type": "Ongoing",

            "site": "Verizon Media",

 

Maybe you just need one of those fields. 

 

In Cloud Log Shipper we can control which information is sent on to the destination by editing the mapping file. You can even have two destinations one with the full logs that you can send somewhere like an AWS S3 bucket for long term storage and then another one that you can send on to your SIEM that trims down the logs to reduce your cost. Be sure to work with your SIEM team and make sure that they are okay with you trimming the logs down. Not all SIEM tools are good at doing that. 

Prerequisites

You will need a Netskope tenant and Cloud Exchange with CLS enabled. 

Workflow

  1. Select which mapping file you are using
  2. Edit the new mapping file
  3. Add fields to the mapping file
  4. Apply your new mapping file to your plugin
  5. Apply your new mapping file to your plugin

 

Select which mapping file you are using

Go to Settings > Log Shipper, Mapping and then select the copy icon. You have to do this because editing the default isn’t allowed. 

AD_4nXeOQ5QX8uT1u9sPUEQl0BBg4M81Xf93q5zljxV6p95rjoZ1pYJp6a08m9g5ZJEzuahC39X8m6E3_PkM2wcO9bOpo6usXLZR4gFhgNPcMbwHzw1mf26xuyGnAyGQvAHkI1TCClwWgrZWf_4J7c5wdP0Fil4?key=5EWB7a1eC_ishfkFAjMnqQ

Edit the new mapping file

Give your new mapping file a name > select which Event, Alert, or WebTx event you want to delete. 

Note: If you select RAW logs in the output plugin, you can’t edit the logs. They will go out without being changed. 

 

AD_4nXcCVaGi8BuuhH5ss8STF2Qy1kyobQjrV9-ubVoJwayGitWRCtm6e_xXovLxk6XzgKe3Buc8NICZpLoPNCCCoTHlby8j8YkNtcm0yD79nHBlGihuqmKNVyzVXlDOCckPGwXai0PyEXTdWIwGhsWmoTYobZd5?key=5EWB7a1eC_ishfkFAjMnqQ

 

Add fields to the mapping file

If you scroll down on any of the alert types you will also see an Add field. In these mapping files we did the best that we could to map what is important to the CEF fields. Netskope has many more fields than there are CEF fields to map them to. If a field isn’t mapped by default you can add it here. 

In the drop down Netskope Field you can select the field that you would like to map. The left Target Field is the name that will be applied to that field as it goes to your SIEM/Syslog server.

AD_4nXc349h_6XDiw9DQMem7xYnu36bmh0Luw48t7RIc2KEomJgttNrqmjAvJ0JHfFQfK5NSJl_cEOlz_LJff5SOREf6b7tGJeSTLkzEAGyflt4WYZJnSKKYJCxIE3Uty3TkYq6YSBIpgTv9VoLhgXYm9bi5Lypw?key=5EWB7a1eC_ishfkFAjMnqQ

 

Once it is Saved you will need to apply it in your destination CLS plugin. 

 

Apply your new mapping file to your plugin

Go to the home page by clicking on the arrow next to Settings at the top. Edit your outbound plugin. 

AD_4nXfeOR3lYetibnPZMP1fNPMZkciDn7gdvy45_T_P6r3FCMimfDf2Co2McbEHvTFkUVNo39DRkwWBPTJiyZoEKvqq83cZWEahplSlCYRQPwYO8bbpQ-HN-4hFT5ggIer_fOOGVtjldyeyUuRwwIcwlLOltTw?key=5EWB7a1eC_ishfkFAjMnqQ

 

Select your new Mapping file. 

AD_4nXc9ssoIr0FYRTeLvJfcKwmheXz-bF6wxTNf4Vb6pB9ld3LDc2lUTRIkaX4GmxrEfV9zAnYC0634VlliBd2v4TyTOFwdrDOIttKzvuOpFn77fKDUHZYAZKo07uHrqRdPEl4dJcFD1z2a2J7iNt9WANCHsU_3?key=5EWB7a1eC_ishfkFAjMnqQ

 

Done. 

 

Note part two: earlier in this I talked about sending the logs out RAW. If you want the logs untouched change this setting so that it is gray. The logs will then be sent unchanged by the Mapping file and will be in RAW JSON format. Not all SIEMs support this so be sure to test. 

AD_4nXdNYG_ygXB0sMhOZ1O8QQ5IQdCbWuSzEEatls1qw3Dkj-wTa6QKerc7ynFB0gRcjP4E_MrN_AyaTXrOxbUVb0u8q5Wa2AS_BZGgXN2DtinXyWVZ-fm8liWTNLPewceXwKWectSLk_G072P73o5eIlh3f1w?key=5EWB7a1eC_ishfkFAjMnqQ

 

0 replies

Be the first to reply!

Reply