Yes, adding a the second set of identical commands as you note.
------------------------------
Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP - Retired)
http://puluka.com/home------------------------------
Original Message:
Sent: 04-10-2024 15:05
From: Andres El Gharib
Subject: Forwarding syslog messages to 2 servers
Hello! Thanks for answer.
Do you mean that I should to re-write these commands but with the new IP? Like this:
set services service-set SS_NAT_MOBILE_3_0 syslog host 10.163.90.10 services info
set services service-set SS_NAT_MOBILE_3_0 syslog host 10.163.90.10 port 10518
set services service-set SS_NAT_MOBILE_3_0 syslog host 10.163.90.10 class nat-logs
set services service-set SS_NAT_MOBILE_3_0 syslog host 10.229.75.17 services info
set services service-set SS_NAT_MOBILE_3_0 syslog host 10.229.75.17 port 10518
set services service-set SS_NAT_MOBILE_3_0 syslog host 10.229.75.17 class nat-logs
set services service-set SS_NAT_MOBILE_3_0 nat-rules NAT_MOBILE_3_0
set services service-set SS_NAT_MOBILE_3_0 next-hop-service inside-service-interface ms-3/0/0.1000
set services service-set SS_NAT_MOBILE_3_0 next-hop-service outside-service-interface ms-3/0/0.2000
------------------------------
Andres El Gharib
Original Message:
Sent: 04-09-2024 20:14
From: spuluka
Subject: Forwarding syslog messages to 2 servers
Assuming the port is the same you would just add the syslog host commands again with the new ip address. This will create a second stanza for the new server using the same settings as the first one.
------------------------------
Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP - Retired)
http://puluka.com/home
Original Message:
Sent: 04-09-2024 10:34
From: Andres El Gharib
Subject: Forwarding syslog messages to 2 servers
Hello there!
On the network, It has a CGNAT device where the syslog messages are forwarded to a server collector, but we need to send these messages to another server too. Both servers will be collectors...
Here is my script, the active server has the address IP: 10.163.90.10 and the address IP of the new server is: 10.229.75.17
set services service-set SS_NAT_MOBILE_3_0 syslog host 10.163.90.10 services info
set services service-set SS_NAT_MOBILE_3_0 syslog host 10.163.90.10 port 10518
set services service-set SS_NAT_MOBILE_3_0 syslog host 10.163.90.10 class nat-logs
set services service-set SS_NAT_MOBILE_3_0 nat-rules NAT_MOBILE_3_0
set services service-set SS_NAT_MOBILE_3_0 next-hop-service inside-service-interface ms-3/0/0.1000
set services service-set SS_NAT_MOBILE_3_0 next-hop-service outside-service-interface ms-3/0/0.2000
Thank you so much!
------------------------------
Andres El Gharib
------------------------------