Question & Answer
Question
Why is the IP Address missing in certain QAUDJRN Audit Log entries?
Cause
This document explains why Remote IP addresses are not guaranteed to appear in audit records generated for processes using TCP/IP sockets on IBM i. It describes the technical behavior of the sockets layer and its impact on audit data.
Answer
There is no guarantee or “promise” that a Remote IP address is associated with a process and therefore included in an audit record generated for that process. This behavior is inherent to the design of the sockets layer and has remained unchanged in recent releases of the Operating System.
Technical Explanation
- The Sockets layer sets the local and Remote IP address in the thread control block each time a Sockets API is called in that thread, replacing any previous values.
- When the
close()API call occurs and the thread control block addresses match those of the closed socket, the IP address values are zeroed out in the control block. - A thread may have access to hundreds of open sockets. Until one of those sockets is used again in a Sockets API call, no IP address value can be stored in the thread control block.
Impact on Audit Records
- If the remote address field is blank in an audit record, it means the last TCP-based socket operation performed before the audit record was created was a
close(), which cleared the remote address. - Blank fields are unfortunate but ultimately unavoidable due to the way socket operations manage IP address data.
Key Takeaways
- The socket layer audit record information is valuable, but it has limitations.
- A blank IP address does not indicate an error in auditing; it reflects the state of the thread at the time the audit record was generated.
[{"Type":"MASTER","Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000000CHyAAM","label":"Security"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"6.1.0;7.1.0;7.2.0;7.3.0;7.4.0;7.5.0;7.6.0"}]
Was this topic helpful?
Document Information
Modified date:
25 November 2025
UID
ibm17252514