LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-17-2016, 10:46 PM   #1
Crash2720
LQ Newbie
 
Registered: Apr 2016
Posts: 12

Rep: Reputation: Disabled
Stuck on my homework


I'm lost on homework, looking for some help. I've got three virtual machines to configure. One Ubuntu "Web" Server, one RedHat "Auth" Server, and another Redhat "Syslog" Server. There is a script for grading that we run on another virtual machine called "grading". Basically I've got 110 of 300 and am really stuck on everything else. Mainly the rsyslog. The question is:
"The web server and the auth server should both be sending their logs to the syslog server:
a. Configure rsyslog to use the template to log to
/var/log/rsyslog_cis235/<hostname>/rsyslog.log
b. The template lines are at the bottom of this documents
c. This configuration should go into the /etc/rsyslog.conf file on your syslog VM

I've set the hostname to syslog and configured the rsyslog.conf file on the "syslog" vm to have the template which he has included as:

# Rsyslog template lines
$template TmplAuth, "/var/log/rsyslog_cis235/%HOSTNAME%/rsyslog.log"
$template TmplMsg, "/var/log/rsyslog_cis235/%HOSTNAME%/rsyslog.log"
authpriv.* ?TmplAuth
*.info,mail.none,authpriv.none,cron.none ?TmplMsg

I set the correct hostnames, edited the rsyslog files yet still no further and I am thoroughly confused after trying a few different variations. Completely unsure as to how to get this working.

This is the output of my grading script:
http://imgur.com/PFdfd2c

and this is the output of the script code:
http://pastebin.com/WLFZKGv8

Thanks in advance
 
Old 04-18-2016, 11:17 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,842

Rep: Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472
Systemd no longer really supports rsyslog...

https://www.freedesktop.org/software...al-remote.html

And maybe this will help:
http://kacper.blog.redpill-linpro.com/archives/602
 
Old 04-18-2016, 07:59 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176
Also ... anytime you are "stuck on homework," please make it your business to let your instructor(s) be the first to know ... not the last!

Instructors need to know when students are "stuck," and what exactly they are "stuck" on, so that they can adjust future lectures and lab sessions (and office hours) to suit the needs of each particular group of students.

Although any homework assignment worthy of its hire is supposed to throw a realistic challenge at you, such that you scratch your head pretty damned hard, you need to know when to cry "uncle." Otherwise, the instructor is shooting in the dark. (And if you surmise that I am speaking from personal experience, you are correct.)
 
Old 04-18-2016, 08:11 PM   #4
Crash2720
LQ Newbie
 
Registered: Apr 2016
Posts: 12

Original Poster
Rep: Reputation: Disabled
Absolutely, I agree, I plan on letting him know when I get in class tomorrow. It's difficult though because I'm usually one of the first ones done, so I'd imagine that if I'm struggling this badly with it, most others will be as well. Takes him a while to get around the class so I'd rather have a head start and get at least 75% of it done then have him go over the last few things and sort of explain what I was stuck on.

and I will post the rsyslog.conf file to pastie once I'm back home and have access to my VM.
 
Old 04-19-2016, 07:48 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176
Quote:
Originally Posted by Crash2720 View Post
Absolutely, I agree, I plan on letting him know when I get in class tomorrow. It's difficult though because I'm usually one of the first ones done, so I'd imagine that if I'm struggling this badly with it, most others will be as well. Takes him a while to get around the class so I'd rather have a head start and get at least 75% of it done then have him go over the last few things and sort of explain what I was stuck on.
/me nods ... Back in the day (koff, koff), my experience was very much the same. Spend time trying to articulate exactly what has "stuck" you, and what you have tried, and so on. The more specific information you can provide the instructor, possibly a few minutes before class begins, the better s/he will know how (and, if ...) to bring up the matter in class. Student feedback, from an earnest and diligent student, is extremely valuable. Try to be prepared and to make it count. No, you are certainly not "the only one."
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Stuck on a Homework question camaroblue87 Linux - Newbie 2 05-06-2006 09:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration