Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
7 replies
Subscribers
10 subscribers
Views
5553 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Administration
Logging IP or hostname of request origination
Priya
over 7 years ago
Hi, we have a requirement to log the request origination Hostname or IP address. If we add these values in the org.apache.log4j.MDC we will be able to log it. Does appian has any values added to MDC that we will be able to use in log4j properties.
OriginalPostID-264462
Discussion posts and replies are publicly visible
0
Eliot Gerson
Appian Employee
over 7 years ago
Your web server and/or app server access logs should have this information.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eliot Gerson
Appian Employee
over 7 years ago
You can also see the origin of all login attempts through the login-audit.csv log, located in your Appian logs directory.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Priya
over 7 years ago
Hi Eliot thanks for your response. Yes I have access logs. But my requirement is to have the request origin information in the appian engine and gateway logs. its not possible to link the access log and the engine logs. For example when there is an error in the gateway log, I want to know the request origin for this error log
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eliot Gerson
Appian Employee
over 7 years ago
I would ask what the objective is here. What is the goal of this requirement?
In terms of an "origin" for requests to the engines, they all originate from the same place: the application server. Clients cannot talk directly to the engines.
To put it another way: if there were IP addresses in the engine logs, what would you do with this information? What is the use case that this would help you achieve?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Priya
over 7 years ago
Basically we want to have some metrics based on the usage and other metrics. For example from which geographic region a particular application is used most etc. So this is possible only if we could get the hostname or ip address in the application-server.log, engine logs and gateway logs.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eliot Gerson
Appian Employee
over 7 years ago
Given that objective, I think it's worth noting that you can collect extensive metrics of that nature from within the product itself. For example, you could track which users (or groups of users, etc) are using certain applications. You could, of course, aggregate and sort this data in any number of different ways.
When you then combine that with the product's existing, out-of-the-box logs, you could take it even further, and see how frequently users log in, and where they log in from, how many calls are made at different times of day, which regions have the most activity on the server and when, and so on...
I think it is likely possible to obtain the knowledge you're wanting (i.e. information about user usage patterns) with logs and other tools available in Appian, and would suggest looking into the access logs and audit logs (as well as process and task reports) as a starting point, rather than the engine logs. The engine logs are likely not the best source of information for your specific objective, at least, as I understand it.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Luis de Niz
Appian Employee
over 6 years ago
You can obtain the source IP address of the request from login-audit.csv. See
docs.appian.com/.../Logging.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel