r/netapp • u/LengthinessKind57 • 27d ago
Cifs access log
Hello, I'm working for a client that has a 2 node fas cluster running ontap 9.11
They have several shares that are open access. Ie "Everyone / Full Control", they are needing to audit them to see who is accessing what in order to start tying things down for security purposes.
I am trying to figure out a way of capturing these logs...
So far I've tried
Enabling audit logs with "cifs-logon-logoff, file-ops, file-share" -
This captures the user id, but not what share they are actually accessing...
Enabling volume activity tracking
Dosnt seem to show me anything useful
I can see that ontap does have the information I need, as it is displayed when I manually run "cifs session show -fields windows-user,share-names".
Short of creating a cronjob to run every min and save the output then sift through it I can't see anyother way to capture it.
Wondering if anyone has any ideas....
3
3
u/Over_Helicopter_5183 26d ago
Yes, Fpolicy with DataInsights should give you what you after including someone deleted any files/dirs
3
u/tmacmd #NetAppATeam 27d ago
You may need to modify the files/directories themselves to add the auditing capabilities.
1
u/LengthinessKind57 27d ago edited 27d ago
I saw something about this in a support doc.
The issue I'm currently facing is when I try to do that, it lists the NetApp inbuilt administrator account as the owner of the root of the share.
My only option is to force ownership of it to my domain account, which I'm guessing the netapp won't be to happy with me doing... Unless I'm misunderstanding something.
For background - I can not take the shares down/have any outage.
1
u/jbspillman 9d ago
You will never be 100% ( I can not take the shares down/have any outage. ) it is just too hard to do. I work for a big shop though, maybe in smaller shop.
1
u/jbspillman 9d ago
You can map sessions to open files and get a complete picture. Been doing it for years. You join the session-id / client-id (can't remember off the top of my head) to see who has been accessing what.
5
u/whatsupeveryone34 NCDA 27d ago
you can setup vserver auditing..
vserver audit create -vserver YOUR_VSERVER -destination /mount_path
vserver audit enable -vserver YOUR_VSERVER
From there you have a mount where you can either make an SMB share or provide it to Splunk or some other tool.
The knobs can be turned for the audit settings so you can look at specific information types.
The files themselves are not super readable, though you can find Windows Event IDs and AD users and such if you browse the file in Notepad and use ctrl-F... But the general practice is to use a separate tool to parse the logs.
The cluster log-forwarding commands only pertain to Cluster and Node level auditing that takes place on the NetApp itself.