Skip to content

Commit 803f503

Browse files
committed
Updated with instructions on how to add file system secrets ARNs.
1 parent 569c7de commit 803f503

File tree

1 file changed

+19
-0
lines changed
  • Monitoring/ingest_nas_audit_logs_into_cloudwatch

1 file changed

+19
-0
lines changed

Monitoring/ingest_nas_audit_logs_into_cloudwatch/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,25 @@ see a log stream, check the Lambda function's configuration to ensure it is corr
145145
output from the Lambda function. You should see log messages indicating that it is ingesting audit logs. If you see any "Errors" then you will
146146
need to investigate and correct the issue. If you can't figure it out, please open an [issue](https://github.com/NetApp/FSx-ONTAP-samples-scripts/issues) in this repository.
147147

148+
### Add more FSx for ONTAP file systems.
149+
The way the program is written, it will automatically discover all FSxN file systems within a region,
150+
and then all the vservers under that FSxN. So, if you add another FSxN it will automatically attempt
151+
to ingest the audit files from all the vservers under it. Unfortunate, it won't be able to, until
152+
you provide a Secret ARN for that file system.
153+
154+
The best way to add a secret ARN, is to either update the secretARNs file you
155+
initially passed to the CloudFormation script, that should be in the S3 bucket you specified in
156+
the `s3BucketName` parameter, or create that file with the information for all the FSxN file systems
157+
you want to ingest the audit logs from and then store it in the S3 bucket.
158+
159+
If you are creating the file for the first time, you'll also need to set the `fsxSecretARNsFile` environment variable
160+
to point to the file. You can leave all the other parameters as they are, including the `fileSystem1ID`, `fileSystem1SecretARN`, etc. ones.
161+
The program will ignore those parameters if the `fsxnSecretARNsFile` environment variable is set. To set
162+
the environment variable, go to the Lambda function's configuration page and click on the "Configuration" tab. Then
163+
click on the "Environment variables" sub tab. Click on the "Edit" button. The `fsxnSecretARNsFile`
164+
environment variable should already be there, but the value should be blank. If the variable isn't there click on the
165+
'add' button and add it. Once the line is there with the `fsxnSecretARNsFile` variable, set the value
166+
to the name of the file you created.
148167

149168
## Author Information
150169

0 commit comments

Comments
 (0)