Dave, in my environment, VPP is running as a separate process in a container. I see the below 3 lines in /var/log/messages.
vnet 1356 - - dpdk_ipsec_process:1026: not enough DPDK crypto resources, default to OpenSSL vnet 1356 - - received SIGTERM, exiting... vnet 1356 - - unix_signal_handler:160: received signal SIGTERM, PC 0x3f110f3cce But I don’t see anymore. Given that VPP is crashing while creating a tap interface in my environment, I am expecting the clib_error_return_unix() logs from the function vnet_netlink_msg_send() in the file src/vnet/devices/netlink.c. Is the syslog file mandatory to be present inside the container to capture the VPP logs? Thanks, Leela sankar From: "Dave Barach (dbarach)" <dbar...@cisco.com> Date: Wednesday, December 11, 2019 at 10:39 AM To: Leela Gudimetla <lgudi...@ciena.com>, "vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io> Subject: RE: [**EXTERNAL**] RE: How to enable logs in VPP? Did you look in the default system logfile /var/log/syslog? That’s the first place I would look for clib_warning output. The unix { log xxxx } stanza concerns logging of debug CLI commands, not clib_warnings... Dave From: Gudimetla, Leela Sankar <lgudi...@ciena.com> Sent: Wednesday, December 11, 2019 1:25 PM To: Dave Barach (dbarach) <dbar...@cisco.com>; vpp-dev@lists.fd.io Subject: Re: [**EXTERNAL**] RE: How to enable logs in VPP? Thanks Dave for the response. But I don’t see the syslog getting generated under /var/log/. I am running VPP process as below. vpp -c /etc/vpp.conf And I have the unix section of vpp.conf file as below. unix { nodaemon log /var/log/vpp.log full-coredump gid vpp cli-listen localhost:5002 } Am I missing something here to get the syslog generated? BTW I am running stable 18_07. Thanks, Leela sankar From: "Dave Barach (dbarach)" <dbar...@cisco.com<mailto:dbar...@cisco.com>> Date: Wednesday, December 11, 2019 at 4:59 AM To: Leela Gudimetla <lgudi...@ciena.com<mailto:lgudi...@ciena.com>>, "vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>" <vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>> Subject: [**EXTERNAL**] RE: How to enable logs in VPP? Make sure to check e.g. /var/log/syslog. Clib_warnings(...) are sent to syslog, and end up in the system log. Search for “vnet”. Example: Dec 11 07:37:56 vpp-n1 vnet[2977]: icmp6_router_solicitation:1811: Prefix [REDACTED] valid 295722 preferred 295722 FWIW... Dave From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> <vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>> On Behalf Of Gudimetla, Leela Sankar Sent: Tuesday, December 10, 2019 5:35 PM To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> Subject: [vpp-dev] How to enable logs in VPP? Hello, I am looking for some information on how to enable error-logs, warnings, etc. I see bunch of logging in the code like clib_error_xxx(), clib_warning_xxx(), etc. Can someone share how to enable these logs to capture to a file on the target? Thanks, Leela sankar
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14871): https://lists.fd.io/g/vpp-dev/message/14871 Mute This Topic: https://lists.fd.io/mt/68157608/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-