<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - SyslogFacility ignored when SyslogLevelPrefix=true"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=65610">65610</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>SyslogFacility ignored when SyslogLevelPrefix=true
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>freedesktop.org@quisquis.de
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Messages of services configured with SyslogLevelPrefix=true are always logged
as facility "user", no matter what SyslogFacility is set to.

Example:

---------
[Unit]
Description=Facility Test

[Install]

[Service]
ExecStart=/bin/sh -c 'while /bin/true; do echo "<4>Hello World"; sleep 3; done'
KillMode=process

StandardInput=null
StandardOutput=syslog
StandardError=inherit

SyslogFacility=mail
SyslogIdentifier=facility-test
SyslogLevel=notice
SyslogLevelPrefix=true
----------

These messages end up in /var/log/messages, not /var/log/mail. An strace on the
syslog daemon shows that it's not a syslog configuration problem:

[pid 20592] recvfrom(3, "<12>Jun 10 15:27:46 facility-tes"..., 8192, 0,
{sa_family=AF_FILE, sun_path="/dev/log"}, [11]) = 53

I. e. syslog receives these as 12=1*8+4, which is facility "user" and level 4.

(Discovered on openSUSE-12.3 with systemd-13.25.1)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>