• 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
The Customize Windows > Computer and Internet > Cloud Computing > 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 :

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
Advertisement

---

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 , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1831 Rp8bOyoJPu0FRDKslUXSgWvbDQQMzjdS6uYuL0eZxe73s_XzLQmWV64vMVsKYzzU 9fb0f5404c042875e244dc941410215eaf065d54&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme

This Article Has Been Shared 7864 Times!

Facebook Twitter Google+ Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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)

  • Installing New Relic on Heroku Cloud

    Installing New Relic on Heroku Cloud is quite easy with Heroku Apps. With New Relic you can monitor the performance of your web app or website on Heroku PaaS.

  • Opportunities and Risks of Cloud Computing for Small Business

    Opportunities and risks of Cloud Computing for Small Business can be calculated and the calculation supports the decision for or against the cloud model.

  • Cloud Computing : What You Need to Know to Change Jobs

    Cloud computing and professions are important point to think about now. There are some skills necessary to launch and ramp up your career in the IT cloud.

  • CHMOD and CHOWN for WordPress

    CHMOD and CHOWN for WordPress are important to set properly during the setup. Improper setup usually throws errors for some Plugins and asks to chmod to 777.

  • Startup and Cloud Storage : Investment and Operating Result

    Startup and Cloud Storage is a topic which is increasingly populating the business pages of many newspapers and Web. Here are parts which are less discussed.

Additionally, 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (15K Followers)
  • Twitter (4.4k Followers)
  • Facebook (5.2k Followers)
  • LinkedIn (3.3k Followers)
  • YouTube (1.5k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • 6 Tips for Securing Your Data from Cyber Attacks as a Remote Worker December 11, 2019
  • What is Process Mining? December 10, 2019
  • Explanation of the ESP32 Vulnerability Warnings December 6, 2019
  • OLTP versus OLAP December 4, 2019
  • What is OLTP (Online Transaction Processing)? December 3, 2019

About This Article

Title: Configure Cloud Server Instance as Syslog Server (Ubuntu 16.04)
2017-01-20

Author: Abhishek Ghosh
Subjects: Cloud Computing

Is Part Of:


TheCustomizeWindows,

Friday, January 20th, 2017,
Vol.1(01),
p.1–46856 [IoT Ready Journal]


Source:The Customize Windows
ISSN: 0019-5847 ;
E-ISSN: 0019-5847 ;
Publisher:
jima.in

Cite this article as: Abhishek Ghosh, "Configure Cloud Server Instance as Syslog Server (Ubuntu 16.04)," in The Customize Windows, January 20, 2017, December 12, 2019, https://thecustomizewindows.com/2017/01/configure-cloud-server-instance-syslog-server-ubuntu-16-04/.

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.


PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

web analysis

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

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