Syslog.conf : Usinhg an IP address as selector ?

Discussion in 'Apple' started by JF Mezei, Nov 13, 2010.

  1. JF Mezei

    JF Mezei Guest

    I have a pretty weak VoIP ATA (Cisco/Linksys SPA3102). It has the
    ability to send SYSLOG messages to a host, but not all of them are
    formatted properly, and one does not have the option to specify a
    facility for those messages.

    On OS-X Server, is there a magic incantation one can put in the
    /etc/syslog.conf file that would select any traffic from a spocific IP
    address ?

    something like: /var/log/telephone.log
    JF Mezei, Nov 13, 2010
    1. Advertisements

  2. JF Mezei

    David Empson Guest

    No, because that file can only select based on the facility name and
    priority of the log message, not the source of the message.

    man syslog.conf

    As far as I can tell, log messages received via UDP are merged into the
    stream of locally generated log messages, without any indication as to
    the source.

    What you might be able to do would be to turn off syslogd's handling of
    incoming UDP log messages (man syslogd and refer to the -udp_in option,
    or you might need to fiddle with launchd) and write a script which
    receives those messages instead and does something else with them, such
    as modifying them then logging them.
    David Empson, Nov 14, 2010
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.