RASlog Service Examples

Container Details

The RASlog Service listens to Syslog messages on port 514 for both TCP and UDP based packets. Name of the RASlog Service container is goraslog-service.

root@sam-kub-master:~/GoDCApp/scripts/single-node-deployment# docker-compose ps
Name Command State Ports
------------------------------------------------------------------------------------------------------------------------------------------------
gofabric-service-v2.0.1 bin/ash -c /opt/fabric/fabric Up (healthy) 0.0.0.0:8081->8081/tcp
goinventory-service-v2.0.1 bin/ash -c /opt/inventory/ ... Up (healthy) 0.0.0.0:8082->8082/tcp
goraslog-service-v2.0.1 bin/ash -c /opt/raslog/syslog Up 0.0.0.0:514->514/tcp, 0.0.0.0:514->514/udp
goswitch-service-v2.0.1 bin/ash -c /opt/goswitch/g ... Up 0.0.0.0:8084->8084/tcp
gotenant-service-v2.0.1 bin/ash -c /opt/ts/ts-server Up (healthy) 0.0.0.0:8083->8083/tcp
kong-api-gateway-v2.0.1 /docker-entrypoint.sh kong ... Up (healthy) 0.0.0.0:8000->8000/tcp, 8001/tcp, 0.0.0.0:8002->8002/tcp, 8443/tcp,
8444/tcp
konga-v2.0.1 /app/start.sh Up 0.0.0.0:1337->1337/tcp
postgres-database-v2.0.1 docker-entrypoint.sh postg ... Up (healthy) 0.0.0.0:5432->5432/tcp
rabbitmq-v2.0.1 docker-entrypoint.sh rabbi ... Up 15671/tcp, 0.0.0.0:15672->15672/tcp, 25672/tcp, 4369/tcp, 5671/tcp,
0.0.0.0:5672->5672/tcp

Asset Service Audit Trail

When device update is triggered due to RASlogEvents, the device_collection_audit table in Inventory Service is updated.

select * from device_collection_audit;
id | device_id | start_time | update_time | status | component | reason | time_taken_seconds
----+-----------+-------------------------------+-------------------------------+---------+-----------+-------------------+--------------------
1 | 2 | 2019-08-14 17:19:38.931296-07 | 2019-08-14 17:19:41.491968-07 | Success | | RaslogEventReason | 2
2 | 2 | 2019-08-14 17:20:18.931769-07 | 2019-08-14 17:20:21.719485-07 | Success | | RaslogEventReason | 2

Support-Save and Logging

The logs from Raslog Service are available in the /var/log/dcapp/raslog/raslog-server.log file. This is captured as part of the supportsave zip file. The logs are stored for a maximum of 30 days and limited to 10 file with a file size of 100 MB each.

root@sam-kub-master:/var/log/dcapp# tree

├── dca-client.log
├── fabric
│ └── fabric.log
├── goswitch
│ ├── fabric
│ │ └── goSwitch.log
│ ├── goswitch
│ │ └── goSwitch.log
│ ├── inventory
│ │ └── goSwitch.log
│ └── ts
│ └── goSwitch.log
├── installer
│ └── installer_201908141711.log
├── inventory
└── inventory-server.log
├── postgresql
│ ├── 000000010000000000000001
│ ├── archive_status
│ ├── postgresql-2019-08-14_171319.log
│ └── postgresql-2019-08-15_000000.log
├── rabbitmq
│ ├── log
│ │ ├── crash.log
│ │ └── crash.log.0
│ ├── rabbitmq1.log
│ └── rabbit@rabbit1_upgrade.log
├── raslog
│ └── raslog-server.log
└── ts
└── ts.log