Attention: The forums will be placed on read only mode this Saturday (Oct. 20, 2018)

During this outage (6:30 AM to 8 PM PDT) the forums will be placed on read only mode. We apologize for this inconvenience. Click here to read details

Linux forum

Question

loghost in etc host

by chuikingman / June 21, 2011 6:23 PM PDT

Hi,
I configure the /etc/hosts in red aht ES 5.4
I want to ask what is the function of "loghost "..
If I miss it , any different or problem ??/

Below is the etc/hosts file

127.0.0.1 localhost
192.168.59.10 A.abc.com A loghost
192.168.59.12 B.abc.com B
192.168.59.13 C.abc.com C

Discussion is locked
You are posting a reply to: loghost in etc host
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: loghost in etc host
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.

All Answers

Collapse -
Answer
hmm
by GODhack / June 24, 2011 7:02 PM PDT
In reply to: loghost in etc host

It is just a host where the syslog daemon logs the messages.

Collapse -
Answer
Format of /etc/hosts
by mike-ocs / July 8, 2011 2:59 AM PDT
In reply to: loghost in etc host

You might also think of "loghost" as being an alias that you can use on your local machine that will point to 192.168.59.10. If you ping loghost, it should ping 192.168.59.10. Similarly, if you ran ping A, it should also ping 192.168.59.10. With the name loghost, it's likely that your /etc/syslog.conf file has an entry that ends in @loghost -- which would essentially send off log files with the specified facility.priority to loghost (or 192.168.59.10).

-Mike

Note: This post was edited by a forum moderator to remove advertisement link on 07/08/2011 at 10:24 AM PT

Collapse -
Just a note.
by MarkFlax Forum moderator / July 8, 2011 3:07 AM PDT
In reply to: Format of /etc/hosts

I've asked the forum Admin to edit out your www link, in this post and your other one.

Tag line advertising contravenes forum policy.

Mark

Popular Forums

icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

FALL TV PREMIERES

Your favorite shows are back!

Don’t miss your dramas, sitcoms and reality shows. Find out when and where they’re airing!