akpw / mktxp-stack

MKTXP Exporter monitoring stack
Other
121 stars 23 forks source link

NEED TO CHANGE 514 PORT #21

Closed Gero6700 closed 2 months ago

Gero6700 commented 3 months ago

I need to change 514 port where I have to modify this? I add this "syslog(transport(udp) port(8514));" on syslog-ng/syslog-ng-fs.conf but doesn't work...

akpw commented 2 months ago

assuming you are running the FS log version, have you tried just setting the port in the relevant section of the docker-compose-mktxp-stack-fs.yml?

syslog-ng:
    command: -edv
    container_name: syslog-ng
    depends_on:
    - promtail
    image: balabit/syslog-ng:latest
    networks:
      mktxp: null
    ports:
    - protocol: udp
      published: 514
      target: 514
    - protocol: tcp
      published: 601
      target: 601
    restart: always
    volumes:
    - ./syslog-ng/syslog-ng-fs.conf:/etc/syslog-ng/syslog-ng.conf:ro
    - mktxp-logs:/var/log/syslog-ng
Gero6700 commented 2 months ago

I tried to change it from docker-compose but it gave error, doesn't it depend on internal configuration files? or other containers?

akpw commented 2 months ago

any reason why not just use the default configs & change the syslog-ng port as suggested above? that would allow your mkt devices to send their logs to that port instead to the default one, if that is what you're trying to do