Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

loghost in etc host

Jun 21, 2011 6:23PM 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

- Collapse -
Answer
hmm
Jun 24, 2011 7:02PM PDT

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

- Collapse -
Answer
Format of /etc/hosts
Jul 8, 2011 2:59AM PDT

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.
Jul 8, 2011 3:07AM PDT

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