Log file access

Andreas_1

Cadet
Joined
Oct 28, 2021
Messages
8
Hi,

i have a Qnap and i want to change to Truenas!
On my Qnap i have a SMB File logging, it is possible on Truenas too?
I couldn't find anything on this topic.


regards
Andreas
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
I couldn't find anything on this topic.
Try the Search here (up and to your right)

1674483188056.png
for SMB file logging - lots of hits. Yes, it's possible.
 

Andreas_1

Cadet
Joined
Oct 28, 2021
Messages
8
thx a lot but

ibve read a many, i get a failure.
I write following in Auxiliary Parameters
log level = 1, auth_audit:5
I cant save it bec:
log level is a blacklisted auxiliary parameter. Changes to this parameter are not permitted.
 
Joined
Oct 22, 2019
Messages
3,641
Services -> SMB -> Log Level -> select from the drop-down options
 
Joined
Oct 22, 2019
Messages
3,641
Like most logs, they're found under /var/log/

In this case, /var/log/samba4/
 

Andreas_1

Cadet
Joined
Oct 28, 2021
Messages
8
hmm, I thought I could view it live like my Qnap without bothering an editor or anything
 

Attachments

  • Log1.png
    Log1.png
    122.6 KB · Views: 311

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Use SSH to get a command line on your NAS, then
Code:
cd /var/log
more <filename>


There is no UI access to logs.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
SSH exists :wink:
 

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222
Yes, of course, but it is easier for me as a user to view the log data in a UI
Yup, but TrueNAS is made for system admins used to ssh.
You could probably use a cronjob to mail the logs regularly in order to view them more easily.
 

garm

Wizard
Joined
Aug 19, 2017
Messages
1,556
nothing stops you running a log server
 
Top