Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
ed3c32c1
Commit
ed3c32c1
authored
Nov 09, 2016
by
Madhan Neethiraj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1281: audit logs should written only to audit.log and not application.log
parent
cd342783
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
atlas-log4j.xml
typesystem/src/main/resources/atlas-log4j.xml
+1
-1
AuditFilter.java
...c/main/java/org/apache/atlas/web/filters/AuditFilter.java
+1
-4
No files found.
typesystem/src/main/resources/atlas-log4j.xml
View file @
ed3c32c1
...
...
@@ -75,7 +75,7 @@
<appender-ref
ref=
"console"
/>
</logger>
<logger
name=
"AUDIT"
>
<logger
name=
"AUDIT"
additivity=
"false"
>
<level
value=
"info"
/>
<appender-ref
ref=
"console"
/>
</logger>
...
...
webapp/src/main/java/org/apache/atlas/web/filters/AuditFilter.java
View file @
ed3c32c1
...
...
@@ -88,8 +88,6 @@ public class AuditFilter implements Filter {
final
String
whatURL
=
Servlets
.
getRequestURL
(
httpRequest
);
final
String
whatAddrs
=
httpRequest
.
getLocalAddr
();
LOG
.
info
(
"Audit: {}/{} performed request {} {} ({}) at time {}"
,
who
,
fromAddress
,
whatRequest
,
whatURL
,
whatAddrs
,
whenISO9601
);
audit
(
who
,
fromAddress
,
whatRequest
,
fromHost
,
whatURL
,
whatAddrs
,
whenISO9601
);
}
...
...
@@ -109,4 +107,4 @@ public class AuditFilter implements Filter {
public
void
destroy
()
{
// do nothing
}
}
\ No newline at end of file
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment