• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Configure Cloud Server Instance as Syslog Server (Ubuntu 16.04)

By Abhishek Ghosh January 20, 2017 11:22 am Updated on January 20, 2017

Configure Cloud Server Instance as Syslog Server (Ubuntu 16.04)

Advertisement

Cloud Server is cheaper. VPSDime 6GB RAM OpenVZ instance costs $7/month, Aruba Cloud 1GB instance VMWare instance costs 1 Euro/month. Here Are the Steps Describing How To Configure Cloud Server Instance as Syslog Server. We Used Ubuntu 16.04 and KeyCDN as Example Usage. RSYSLOG means the rocket-fast system for log processing. Rsyslog is a Free Software for forwarding log messages in an IP network.

 

General Steps to Configure Cloud Server Instance as Syslog Server

 

If you want to install latest version of rsyslog, then check instructions on their GitHub repo, also you’ll get commands for CentOS :

Vim
1
https://github.com/rsyslog/rsyslog

If you want to install as Ubuntu package, then run the immediately below commands to update, upgrade and install rsyslog :

Advertisement

---

Vim
1
2
apt-get update
apt-get install rsyslog

 

Configure Cloud Server Instance as Syslog Server With KeyCDN

 

This cloud server node is rsyslog-server. CDN log is captured on this server like we see on KeyCDN dashboard :

Configure Cloud Server Instance as Syslog Server Ubuntu 16-04

We talked about KeyCDN before. Open rsyslog.conf file :

Vim
1
nano /etc/rsyslog.conf

/etc/rsyslog.conf
Vim
1
2
3
# find these two lines and make them active by uncommenting
$ModLoad imudp
$UDPServerRun 514

Open a custom config file :

Vim
1
nano /etc/rsyslog.d/10-custom.conf

You’ll add the following content with the modification of and /path/to/your/logfile;cdnlogs :

/etc/rsyslog.d/10-custom.conf
Vim
1
2
3
$template cdnlogs,"%msg%\n"
:msg, contains, "|uid<userId>|" /path/to/your/logfile;cdnlogs
& ~

The above is correct setup, in case you /var/log/messages get flooded, add the above config before the entry of /var/log/messages rule on /etc/rsyslog.conf and empty the lines on /etc/rsyslog.d/10-custom.conf.

can be found as User ID from KeyCDN Account Details link on dashboard.

Restart rsyslog :

~
Vim
1
service rsyslog restart

Also you need to configure syslog server from KeyCDN Dashboard, go to Account Settings, then Real-time Log Forwarding option menu. The log forwarding will take some time like 5-10 minutes.

If you run :

Vim
1
tail -f /path/to/your/logfile

you’ll get new log entries. It is very important to keep the port 514 UDP open. To open via iptables, you need to run command like this :

Vim
1
iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 514 -j ACCEPT

Save iptables. Check networking :

Vim
1
2
netstat -na | grep :514
tcpdump port 514

Now we can use Elasticsearch and Logstash tools to transform, and store log data as next steps.

Tagged With configure syslog on ubuntu for cloud app security automatic log upload , how forwarding windows log to ubuntu in the cloud , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1831 Rp8bOyoJPu0FRDKslUXSgWvbDQQMzjdS6uYuL0eZxe73s_XzLQmWV64vMVsKYzzU 9fb0f5404c042875e244dc941410215eaf065d54&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , install syslog server google cloud
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Configure Cloud Server Instance as Syslog Server (Ubuntu 16.04)

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Join/Merge Multiple Log Files For Big Data Analysis

    Here Are The Ways To Join/Merge Multiple Log Files For Big Data Analysis, Store Them To OpenStack Based Cloud Storage And Delete Old Files.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy