# Change CVMFS logging output

**URL:** <https://cernvm-forum.cern.ch/t/change-cvmfs-logging-output/381>\
**Category:** Client\
**Created:** [November 30, 2023, 8:17pm UTC](https://cernvm-forum.cern.ch/t/change-cvmfs-logging-output/381 "2023-11-30T20:17:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dajordan](https://cernvm-forum.cern.ch/letter_avatar_proxy/v4/letter/d/dc4da7/32.png) [@dajordan](https://cernvm-forum.cern.ch/u/dajordan)\
**Post date:** [November 30, 2023, 8:17pm UTC](https://cernvm-forum.cern.ch/t/change-cvmfs-logging-output/381/1 "2023-11-30T20:17:15Z")

</div>

I’m trying to move the cvmfs2 output from /var/log/messages into another file. I’ve tried the following on an AlmaLinux 9 host with cvmfs version 2.11.2.

- Add the following to autofs.service

```auto
StandardOutput=file:/var/log/cvmfs.log
StandardError=file:/var/log/cvmfs.log

```

- Adding the following to autofs.service and then creating a /etc/rsyslog.d/autofs.conf file

```auto
StandardOutput=syslog
SandardError=syslog
SyslogIdentifier="cvmfs"

```

```auto
# cat /etc/rsyslog.d/autofs.conf
if $programname == 'w' then /var/log/cvmfs.log
& stop

```

Neither seem to work. I didn’t find any logging options in the cvmfs docs that would do what I’m looking for. And I’m not sure if I’ve configured something incorrectly, it’s understood this wouldn’t work and I require something else to move the cvmfs2 output from /var/log/messages.

I don’t want to get rid of the logs. I want to move them to another file so /var/log/messages is easier to parse without sifting through cvmfs output and cvmfs output is easier to sift through without syslog output.

---

<div class="post-metadata">

**Author:** ![vavolkl](https://cernvm-forum.cern.ch/letter_avatar_proxy/v4/letter/v/ebca7d/32.png) [@vavolkl](https://cernvm-forum.cern.ch/u/vavolkl)\
**Post date:** [December 1, 2023, 8:42am UTC](https://cernvm-forum.cern.ch/t/change-cvmfs-logging-output/381/2 "2023-12-01T08:42:30Z")

</div>

Hi David,

I think this is configurable in CVMFS! Try the

CVMFS\_USYSLOG=/var/log/cvmfs.log

option. If that does not work, let us know.  
Cheers,  
Valentin

---

<div class="post-metadata">

**Author:** ![dajordan](https://cernvm-forum.cern.ch/letter_avatar_proxy/v4/letter/d/dc4da7/32.png) [@dajordan](https://cernvm-forum.cern.ch/u/dajordan)\
**Post date:** [December 1, 2023, 5:29pm UTC](https://cernvm-forum.cern.ch/t/change-cvmfs-logging-output/381/3 "2023-12-01T17:29:58Z")

</div>

I must have missed that option when I was going through the cvmfs documentation. I tried it and it works as you say for us. Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://cernvm-forum.cern.ch/uploads/default/original/1X/3e336816dfbfe00295701fad16d3bf5b3fca3a02.jpeg) [@system](https://cernvm-forum.cern.ch/u/system)\
**Post date:** [December 16, 2023, 5:30pm UTC](https://cernvm-forum.cern.ch/t/change-cvmfs-logging-output/381/4 "2023-12-16T17:30:30Z")

</div>

Closed on December 16, 2023, 5:30pm UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
