you can either
# touch /var/log/bird.log && chown bird:bird /var/log/bird.log
or create a dir for it
# mkdir /var/log/bird && chown bird:bird /var/log/bird
also in bird.conf:
log "/var/log/bird/bird.log" all;
While sinking every message into a single file can be sometime messy, I
usually separate them into different files:
log "/var/log/bird/bird.log" {info, remote, warning, auth};
log "/var/log/bird/bird.err.log" {error, fatal, bug};
log "/var/log/bird/bird.debug.log" { debug, remote, trace };
---
Regards,
Quan Zhou
73D8DECC66C04062A57146B30B157195154689C7
https://posteo.de/keys/quan@posteo.net
(Keybase is used for pubkey hosting only)
On 07.04.2021 03:01, pete M via 44Net wrote:
log "/var/log/bird.log" all;
I told on the group before that Bird does not have the right to write
in the /var/log/ directory and create the log files.
Either remove the loging OR give bird the write/create priviledge on
its log file. (just make the log files and change its ownership to
bird.)
________________________________________
De : 44Net <44net-bounces+petem001=hotmail.com(a)mailman.ampr.org> de la
part de Eric Fort via 44Net <44net(a)mailman.ampr.org>
Envoyé : 6 avril 2021 20:52
À : 44Net general discussion
Cc : Eric Fort
Objet : Re: [44net] Vultr bgp setup
Ok I have a bgp session established. (No routes announced yet). Please
examine the following files. Why does one crash on startup and the
other bird runs just fine?
root@Ampr44182822router:/etc/bird# cat bird.conf.works
router id 104.238.141.49;
protocol bgp vultr
{
local as 4288000184;
source address 104.238.141.49;
import none;
export all;
graceful restart on;
multihop 2;
neighbor 169.254.169.254 as 64515;
password "password";
}
root@Ampr44182822router:/etc/root@Ampr44182822router:/etc/bird# cat
bird.conf.broken
log "/var/log/bird.log" all;
router id 104.238.141.49;
protocol bgp vultr
{
local as 4288000184;
source address 104.238.141.49;
import none;
export all;
graceful restart on;
multihop 2;
neighbor 169.254.169.254 as 64515;
password "password";
}
root@Ampr44182822router:/etc/bird#
Bird chokes quietly on the broken one yet sets up a bgp session with
no problem on the working one. (File names indicate which is which. ).
The idea here is to do this in incremental steps thus I’m not
announcing any routes yet. I simply want to see that I have a peering
session established with my neighbor. Then as a next step I can add a
routing stanza to announce my networks.
Sent using SMTP.
_________________________________________
44Net mailing list
44Net(a)mailman.ampr.org
https://mailman.ampr.org/mailman/listinfo/44net
_________________________________________
44Net mailing list
44Net(a)mailman.ampr.org
https://mailman.ampr.org/mailman/listinfo/44net