13-05-2021

Active1 year, 2 months ago

Hi, We are implementing dot1x on our 6509 model switches. While doing one of my tests, I have seen 'Authentication failed for client (Unknown MAC) on Interface x/x'.

I have a program that was written for linux and I am trying to build and run it on my MacOS 10.5 machine. The program builds and runs without problem, however it makes many calls to syslog. I know that syslogd is running on my mac, however I can't seem to find where my syslog calls are output to.

The syslog calls are of the form

Any idea where I might find my log output?

the Tin Man
139k27 gold badges181 silver badges261 bronze badges
arigreen

7 Answers

/var/log/system.log

You can monitor it easily using tail -f /var/log/system.log

See also the 'logger' (man logger) and 'syslog' (man syslog).

the Tin Man
139k27 gold badges181 silver badges261 bronze badges
maericsmaerics
111k32 gold badges211 silver badges256 bronze badges

You should probably use the Console.app to view logfiles. It's purdy.

Select your device on the left and filter messages on the right:

Jorge Orpinel
3,0841 gold badge14 silver badges26 bronze badges
Matthew SchinckelMatthew SchinckelSyslog
28.6k4 gold badges63 silver badges98 bronze badges

When in doubt, there's always man syslog.

You can find your messages in /var/log/syslog; my machine is set up out of the box to only include high level messages so you may need to have your settings.

You can also read the messages through syslog(1), or create a test message with a command like

use a severity of P ('panic') and you'll get an exciting message on your console immediately.

Charlie Martin

Syslog Server Linux

Charlie Martin
94.5k21 gold badges171 silver badges245 bronze badges

Maybe interesting to note: Apple was using a real syslogd in the past but meanwhile all of this has switched to ASL (Apple System Log). The syslog command is still available, but it will only access this one log. If you want to access all log messages of ASL across all log files configured, use the log command.

E.g. the following shows all log messages produced by Safari within the last two days (be patient, can take a while):

See man log for all the actions you can perform, all the parameters it knows and what attributes you can filter for.

MeckiMecki
83.5k26 gold badges166 silver badges189 bronze badges

Mac OS X implements a superset of syslog's functionality. All of syslog is there, but as part of ASL.

Console, mentioned by Matthew Schinckel in his answer, is the GUI on ASL. It'll show you any messages that exist in the database, as fetched by queries listed in the sidebar. There are two queries by default; one only shows messages sent with the Console facility (as used by NSLog, among other things), whereas the other shows all log messages. Check the all-messages query; you'll probably find your message there.

That “all” does come with an asterisk. If you look in /etc/asl.conf, you'll see this line:

Fortunately, in your case, the message will pass this check, since warning outranks (is a lesser number than) notice.

Peter HoseyPeter Hosey
89.6k13 gold badges191 silver badges358 bronze badges

Building on Charlie's answer, I would like to add that you should take a look at the manpage of syslog.conf(5) and also take a peek at the file /etc/syslog.conf (which is where the syslog configuration is defined by default and also, as I see it, on OS X 10.5.x).

ayazayaz
9,0734 gold badges27 silver badges48 bronze badges

Mac Os Syslog

Check for a call to openlog somewhere in the program. After a call to openlog, syslog will save its output to that log file instead of the default location.

Peter HoseyPeter Hosey
89.6k13 gold badges191 silver badges358 bronze badges
Active1 year, 2 months ago

I have a program that was written for linux and I am trying to build and run it on my MacOS 10.5 machine. The program builds and runs without problem, however it makes many calls to syslog. I know that syslogd is running on my mac, however I can't seem to find where my syslog calls are output to.

The syslog calls are of the form

Any idea where I might find my log output?

the Tin Man
139k27 gold badges181 silver badges261 bronze badges
arigreen

7 Answers

/var/log/system.log

You can monitor it easily using tail -f /var/log/system.log

See also the 'logger' (man logger) and 'syslog' (man syslog).

the Tin Man
139k27 gold badges181 silver badges261 bronze badges
maericsmaerics
111k32 gold badges211 silver badges256 bronze badges

You should probably use the Console.app to view logfiles. It's purdy.

Select your device on the left and filter messages on the right:

Jorge Orpinel
3,0841 gold badge14 silver badges26 bronze badges
Matthew SchinckelMatthew Schinckel
28.6k4 gold badges63 silver badges98 bronze badges

When in doubt, there's always man syslog.

You can find your messages in /var/log/syslog; my machine is set up out of the box to only include high level messages so you may need to have your settings.

Duck

Free Syslog Client For Windows

You can also read the messages through syslog(1), or create a test message with a command like

use a severity of P ('panic') and you'll get an exciting message on your console immediately.

Charlie MartinCharlie Martin
94.5k21 gold badges171 silver badges245 bronze badges

Maybe interesting to note: Apple was using a real syslogd in the past but meanwhile all of this has switched to ASL (Apple System Log). The syslog command is still available, but it will only access this one log. If you want to access all log messages of ASL across all log files configured, use the log command.

E.g. the following shows all log messages produced by Safari within the last two days (be patient, can take a while):

See man log for all the actions you can perform, all the parameters it knows and what attributes you can filter for.

MeckiMecki
83.5k26 gold badges166 silver badges189 bronze badges

Mac OS X implements a superset of syslog's functionality. All of syslog is there, but as part of ASL.

Console, mentioned by Matthew Schinckel in his answer, is the GUI on ASL. It'll show you any messages that exist in the database, as fetched by queries listed in the sidebar. There are two queries by default; one only shows messages sent with the Console facility (as used by NSLog, among other things), whereas the other shows all log messages. Check the all-messages query; you'll probably find your message there.

That “all” does come with an asterisk. If you look in /etc/asl.conf, you'll see this line:

Fortunately, in your case, the message will pass this check, since warning outranks (is a lesser number than) notice.

Peter HoseyPeter Hosey
89.6k13 gold badges191 silver badges358 bronze badges

Ftp Client For Mac 10.6

Mac

Building on Charlie's answer, I would like to add that you should take a look at the manpage of syslog.conf(5) and also take a peek at the file /etc/syslog.conf (which is where the syslog configuration is defined by default and also, as I see it, on OS X 10.5.x).

ayazayaz
9,0734 gold badges27 silver badges48 bronze badges

Check for a call to openlog somewhere in the program. After a call to openlog, syslog will save its output to that log file instead of the default location.

Peter HoseyPeter Hosey
89.6k13 gold badges191 silver badges358 bronze badges