Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Ask Me About Webinar: Data Center Assets - Modeling, Cooling, and CFD Simulation
Join our 30-minute expert session on July 10, 2025 (9:00 AM & 5:00 PM CET), to explore Digital Twins, cooling simulations, and IT infrastructure modeling. Learn how to boost resiliency and plan power capacity effectively. Register now to secure your spot!

Log to syslog using hostname rather than IP address

APC UPS Data Center & Enterprise Solutions Forum

Schneider, APC support forum to share knowledge about installation and configuration for Data Center and Business Power UPSs, Accessories, Software, Services.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • APC UPS, Critical Power, Cooling and Racks
  • APC UPS Data Center & Enterprise Solutions Forum
  • Log to syslog using hostname rather than IP address
Options
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
BillP
Administrator BillP Administrator
5060
voidstar_apc
Janeway voidstar_apc
196
Teken
Spock Teken
123
Erasmus_apc
Sisko Erasmus_apc
112
View All

Free

English

Data Center Certified Associate Exam Development Path

Strengthen your foundational knowledge in Data Centers for free, enroll in this path today and start your learning journey!

4.0
Register Browse SE University

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to APC UPS Data Center & Enterprise Solutions Forum
Solved
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-29 04:02 AM . Last Modified: ‎2024-03-13 01:52 AM

0 Likes
5
3982
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 04:02 AM . Last Modified: ‎2024-03-13 01:52 AM

Log to syslog using hostname rather than IP address

I would like to see the locally defined hostname in syslog, rather than its IP address.

In other words, I currently see:

2016-06-03T06:18:31-07:00 10.1.100.200 System: Web user 'stuartk' logged in from 10.1.71.40. 0x0015

I would prefer to see:

2016-06-03T06:18:31-07:00 mdf-ups System: Web user 'stuartk' logged in from 10.1.71.40. 0x0015

I have configured the hostname in two places:

[NetworkTCP/IP]

HostName=mdf-ups

[SystemID]
Name=mdf-ups

Does any version of AOS support this?

--sk

Labels
  • Labels:
  • UPS Management Devices & PowerChute Software
  • Tags:
  • hostname
  • syslog
Reply

Link copied. Please paste this link to share this article on your social media post.

Contact Support
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-29 04:02 AM . Last Modified: ‎2024-03-13 01:52 AM

0 Likes
0
3978
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 04:02 AM . Last Modified: ‎2024-03-13 01:52 AM

Hi,

This was address with the 6.6.5 release of firmware for the NMC. You should update the firmware to the latest rev available on APC.com

See Answer In Context

Reply

Link copied. Please paste this link to share this article on your social media post.

Contact Support
Replies 5
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-29 04:02 AM . Last Modified: ‎2024-03-13 01:52 AM

0 Likes
0
3979
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 04:02 AM . Last Modified: ‎2024-03-13 01:52 AM

Hi Stuart,

I don't see that we offer this today. I see the Syslog RFC here and specifically section 6.2.4 which recommends how things should work for that field: https://tools.ietf.org/html/rfc5424#section-6.2.4 

I can file an enhancement request to look at this capability for a future version instead of showing the IP.

Reply

Link copied. Please paste this link to share this article on your social media post.

Contact Support
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-29 04:02 AM . Last Modified: ‎2024-03-13 01:52 AM

0 Likes
0
3979
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 04:02 AM . Last Modified: ‎2024-03-13 01:52 AM

(1) I would argue that the RFC encourages us to log FQDN when possible; this would be the ideal choice, if we're paying strict attention to the RFC.

 The HOSTNAME field SHOULD contain the hostname and the domain name of
   the originator in the format specified in STD 13 [RFC1034].  This
   format is called a Fully Qualified Domain Name (FQDN) in this
   document.

   In practice, not all syslog applications are able to provide an FQDN.
   As such, other values MAY also be present in HOSTNAME.  This document
   makes provisions for using other values in such situations.  A syslog
   application SHOULD provide the most specific available value first.
   The order of preference for the contents of the HOSTNAME field is as
   follows:

   1.  FQDN

   2.  Static IP address

   3.  hostname

   4.  Dynamic IP address

   5.  the NILVALUE

And that since this APC device is configured to know its FQDN,

HostName=mdf-ups
DomainName=corp.alleninstitute.org

it would be capable of logging using its FQDN.

Of course, the RFC says SHOULD rather than MUST, so I would also argue that the current implementation is RFC-compliant (if not "RFC-optimal").

==> Yes, please log an enhancement request

Case:

- Logging FQDN *when possible* adheres more closely to the RFC

- When customers are working with their Network Monitoring Platforms, seeing a hostname makes their lives way easier, as opposed to seeing IP addresses, which tend not to stick well in human memory (aka "mdf-ups" tells me that this is the UPS located in the Main Distribution Frame room ... whereas "10.1.100.200" tells me ... very little, particularly if I own lots of these devices.

- Speaking from my experience only (several decades of syslog grepping .. but still, only one person's perspective), I will claim that virtually all devices log Hostname, very few log IP address.  [My current exceptions:  (a) some 12-year old HP Switches, and (b) my flock of APC devices.]  For example, Windows (equipped with Event Log-to-Syslog forwarding software), Linux, Solaris, Cisco, Juniper, Hitachi, NetApp, Liebert, Enlogic ... all log Hostnames.  Thus, logging Hostname (or FQDN) as opposed to IP address would make APC similar to a substantial majority of other manufacturers.

(2) As an aside, I note that I rarely see a device log using its FQDN ... instead, devices tend to log, by default, using their Hostname, e.g. "mdf-ups" rather than "mdf-ups.company.com".  i.e. choice #3 in the RFC.  Perhaps 'hostname' is easier to implement.

(3) I note that when using the Syslog Test function, APC devices log using their hostname, see here for an example:

2016-06-03T09:27:14-07:00 10.1.100.200 Web user 'stuartk' logged in from 10.1.71.40. 0x0015
2016-06-03T09:29:44.496285-07:00 mdf-ups 06/03/2016 09:29:45 10.128.13.50 APC: Test Syslog.
2016-06-03T09:30:04-07:00 10.1.100.200 Web user 'stuartk' logged out from 10.1.71.40. 0x001F

So I propose that the code to log using Hostname is already included in AOS, although the standard execution path when logging messages does not invoke whatever routine provides this service.

==> Specifically, I propose that AOS log to syslog using its Hostname, if that hostname has been changed from the default, and using its IP address if not.

==> If you are feeling energetic, then provide a checkbox for "Log to syslog using IP address, not Hostname"

--sk

  • Tags:
  • enhancement
  • hostname
  • logging
  • syslog
Reply

Link copied. Please paste this link to share this article on your social media post.

Contact Support
Anonymous user
Not applicable

Posted: ‎2021-06-29 04:02 AM . Last Modified: ‎2024-03-13 01:52 AM

0 Likes
0
3979
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 04:02 AM . Last Modified: ‎2024-03-13 01:52 AM

Hi Angela,

 

We want to raise/file  a enhancement request to log hostname in syslog rather than IP address.

Please help and look in to it asap to get it done.

Thanks,

Ganesh Waghmare

  • Tags:
  • address
  • enhancement
  • hostname
  • in
  • ip
  • log
  • rather
  • request
  • syslog
  • than
  • to
Reply

Link copied. Please paste this link to share this article on your social media post.

Contact Support
Anonymous user
Not applicable

Posted: ‎2021-06-29 04:02 AM . Last Modified: ‎2024-03-13 01:52 AM

0 Likes
0
3979
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 04:02 AM . Last Modified: ‎2024-03-13 01:52 AM

Hi Angela,

Please help us with an update.

 

Thanks,

Ganesh Waghmare

Reply

Link copied. Please paste this link to share this article on your social media post.

Contact Support
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-29 04:02 AM . Last Modified: ‎2024-03-13 01:52 AM

0 Likes
0
3979
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 04:02 AM . Last Modified: ‎2024-03-13 01:52 AM

Hi,

This was address with the 6.6.5 release of firmware for the NMC. You should update the firmware to the latest rev available on APC.com

Reply

Link copied. Please paste this link to share this article on your social media post.

Contact Support
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of