Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

94
Visualizações
How to add custom prefix to every syslog line automatically?

I would like to have a specific prefix in front of every single syslog line in my Ubuntu servers (running nginx). The prefix should take the value from either some env-variable or one specific folder name. How to do it?

I see there is a syslog configuration file present but didn't see possibilities how to configure this accordingly. Found some rsyslog configuration from /etc/rsyslog.conf and as well from /etc/rsyslog.d/* but no clue how to configure it there.

EXAMPLE:

Let's say I have env variable evaluated as follows: PLUGIN_VERSION=32k0dkwfrghhaq3faiwejaf932. I would now like this 32k0dkwfrghhaq3faiwejaf932 to be present in front of every single line in my syslog file.

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda