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
8 years ago
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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
atlas-log4j.xml
typesystem/src/main/resources/atlas-log4j.xml
+1
-1
AuditFilter.java
...c/main/java/org/apache/atlas/web/filters/AuditFilter.java
+0
-2
No files found.
typesystem/src/main/resources/atlas-log4j.xml
View file @
ed3c32c1
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"console"
/>
</logger>
</logger>
<logger
name=
"AUDIT"
>
<logger
name=
"AUDIT"
additivity=
"false"
>
<level
value=
"info"
/>
<level
value=
"info"
/>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"console"
/>
</logger>
</logger>
...
...
This diff is collapsed.
Click to expand it.
webapp/src/main/java/org/apache/atlas/web/filters/AuditFilter.java
View file @
ed3c32c1
...
@@ -88,8 +88,6 @@ public class AuditFilter implements Filter {
...
@@ -88,8 +88,6 @@ public class AuditFilter implements Filter {
final
String
whatURL
=
Servlets
.
getRequestURL
(
httpRequest
);
final
String
whatURL
=
Servlets
.
getRequestURL
(
httpRequest
);
final
String
whatAddrs
=
httpRequest
.
getLocalAddr
();
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
);
audit
(
who
,
fromAddress
,
whatRequest
,
fromHost
,
whatURL
,
whatAddrs
,
whenISO9601
);
}
}
...
...
This diff is collapsed.
Click to expand it.
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