Community Training Classes & Labs > DNS Services Index

2.1. Log Profile

Configure DNS query and response logging.

  1. Create a “Log Publisher” for local syslog.

    Navigate to: System ›› Logs : Configuration : Log Publishers

    ../../_images/system_log_publisher_flyout.png

    Create a local syslog publisher as shown in the table below:

    Setting Value
    Name local-syslog-publisher
    Destinations local-syslog
    ../../_images/sys_syslog_publisher_details.png

    https://router01.branch01.example.com/tmui/Control/jspmap/tmui/system/log/create_publisher.jsp

    TMSH

    tmsh create sys log-config publisher local-syslog-publisher { destinations add { local-syslog { } } }

  2. Create a “Logging Profile”

    Navigate to DNS ›› Delivery : Profiles : Other : DNS Logging

    ../../_images/dns_cache_transparent_flyout_router01.png

    Create a DNS logging profile as shown in the table below:

    Setting Value
    Name example_dns_logging_profile
    Log Publisher local-syslog-publisher
    Log Responses enabled
    Include Query ID enabled
    ../../_images/dns_cache_transparent_create_router01.png

    https://router01.branch01.example.com/tmui/Control/jspmap/tmui/locallb/profile/dns_log/create.jsp

    TMSH

    tmsh create ltm profile dns-logging example_dns_logging_profile enable-response-logging yes include-query-id yes log-publisher local-syslog-publisher