Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

89
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!