Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6671995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:27:21+00:00 2026-05-26T03:27:21+00:00

i have a host running syslog-ng. it does all it’s stuff locally fine (creating

  • 0

i have a host running syslog-ng. it does all it’s stuff locally fine (creating log files etc). however, i would like to forward ALL of it’s logs to a remote machine – specifically to one facility on the remote machine (local4). i tried playing around with rewrite (set-facility) and templates within the destination (syntax errors) – but to no avail.

destination remote_server { 
  udp(\"172.18.192.8\" port (514)); 
  udp(\"172.18.192.9\" port (514));
}; 
rewrite r_local4 {
  set-facility(local4);
};
filter f_alllogs {
  level (debug...emerg);
};
log {
  source(local);
  filter(f_alllogs);
  rewrite(r_local4)
  destination(remote_server); 
};
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:27:22+00:00Added an answer on May 26, 2026 at 3:27 am

    AFAIK, currently it is not possible to modify the facility of a message in syslog-ng.

    Is there a special reason you want to do it?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a bash script to backup my files with rsync. Backups all
Having some issues running my code local. I have host file setup like this:
I have a host device that connects to anything running JSR-82. The problem is
I have the DotNetOpenAuth sample provider running locally and it appears to correctly handle
I have a rails application running on my shared host server and the public_html
I have a dev image running under Virtual Server 2005 R2. Host OS is
I have one host running a JVM that runs an Esper service. I have
I have a Linux host running Apache and a Windows host running IIS. I
I am running host to device bandwidthtests for different sizes of data, and have
I have a sharepoint web service running at specified host + /_vti_bin/UserProfileWebService.asmx. I would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.