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 <[email protected]>
Sent: Wednesday, December 11, 2019 1:25 PM
To: Dave Barach (dbarach) <[email protected]>; [email protected]
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)" <[email protected]<mailto:[email protected]>>
Date: Wednesday, December 11, 2019 at 4:59 AM
To: Leela Gudimetla <[email protected]<mailto:[email protected]>>,
"[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>
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: [email protected]<mailto:[email protected]>
<[email protected]<mailto:[email protected]>> On Behalf Of Gudimetla, Leela
Sankar
Sent: Tuesday, December 10, 2019 5:35 PM
To: [email protected]<mailto:[email protected]>
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 (#14870): https://lists.fd.io/g/vpp-dev/message/14870
Mute This Topic: https://lists.fd.io/mt/68157608/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-