Syslog Network Devices

Hi ,

I want to implement Loki as log server using Alloy/Grafna for Cisco switches, but am not getting any logs .

local.file_match “local” {
path_targets = [{“path” = “/var/log/ciscoauth.log”}]
sync_period = “10s”
}

loki.source.syslog “local” {
listener {
address = “0.0.0.0:514”
protocol = “udp”
labels = {
component = “loki.source.syslog”,
protocol = “udp”,
}
}

forward_to = [loki.write.default.receiver]
}

loki.write “default” {
endpoint {
url = “http://localhost:3100/loki/api/v1/push

}
}

Cisco logs don’t follow the RFCs. See SNMP integration | Grafana Cloud documentation