You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Steve Loughran (Created) (JIRA)" <ji...@apache.org> on 2011/09/30 16:59:45 UTC
[jira] [Created] (HADOOP-7705) Add a lo4j back end that can push
out JSON data, one per line
Add a lo4j back end that can push out JSON data, one per line
-------------------------------------------------------------
Key: HADOOP-7705
URL: https://issues.apache.org/jira/browse/HADOOP-7705
Project: Hadoop Common
Issue Type: New Feature
Components: util
Reporter: Steve Loughran
Assignee: Steve Loughran
Priority: Minor
If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13127445#comment-13127445 ]
Hudson commented on HADOOP-7705:
--------------------------------
Integrated in Hadoop-Mapreduce-trunk-Commit #1100 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/1100/])
HADOOP-7705
stevel : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1183292
Files :
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/log/Log4Json.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/log/TestLog4Json.java
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Fix For: 0.23.0, 0.24.0
>
> Attachments: HADOOP-7705-log4json.patch, HADOOP-7705.patch, HADOOP-7705.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Steve Loughran (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Loughran updated HADOOP-7705:
-----------------------------------
Attachment: HADOOP-7705.patch
improved javadoc header, rm unused imports/constants
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Attachments: HADOOP-7705-log4json.patch, HADOOP-7705.patch, HADOOP-7705.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Steve Loughran (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Loughran updated HADOOP-7705:
-----------------------------------
Summary: Add a log4j back end that can push out JSON data, one per line (was: Add a lo4j back end that can push out JSON data, one per line)
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Steve Loughran (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13127399#comment-13127399 ]
Steve Loughran commented on HADOOP-7705:
----------------------------------------
the findbugs threading problem is not in this code.
+1, committing
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Attachments: HADOOP-7705-log4json.patch, HADOOP-7705.patch, HADOOP-7705.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Steve Loughran (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Loughran updated HADOOP-7705:
-----------------------------------
Status: Patch Available (was: Open)
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Attachments: HADOOP-7705-log4json.patch, HADOOP-7705.patch, HADOOP-7705.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Steve Loughran (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Loughran updated HADOOP-7705:
-----------------------------------
Resolution: Fixed
Fix Version/s: 0.24.0
0.23.0
Status: Resolved (was: Patch Available)
Applied to 0.23 and trunk; no compatibility issues as its for logging and optional.
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Fix For: 0.23.0, 0.24.0
>
> Attachments: HADOOP-7705-log4json.patch, HADOOP-7705.patch, HADOOP-7705.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Steve Loughran (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Loughran updated HADOOP-7705:
-----------------------------------
Attachment: HADOOP-7705-log4json.patch
patch with tests
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Attachments: HADOOP-7705-log4json.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13127501#comment-13127501 ]
Hudson commented on HADOOP-7705:
--------------------------------
Integrated in Hadoop-Hdfs-trunk #830 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/830/])
HADOOP-7705
stevel : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1183292
Files :
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/log/Log4Json.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/log/TestLog4Json.java
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Fix For: 0.23.0, 0.24.0
>
> Attachments: HADOOP-7705-log4json.patch, HADOOP-7705.patch, HADOOP-7705.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13127520#comment-13127520 ]
Hudson commented on HADOOP-7705:
--------------------------------
Integrated in Hadoop-Mapreduce-trunk #860 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/860/])
HADOOP-7705
stevel : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1183292
Files :
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/log/Log4Json.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/log/TestLog4Json.java
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Fix For: 0.23.0, 0.24.0
>
> Attachments: HADOOP-7705-log4json.patch, HADOOP-7705.patch, HADOOP-7705.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Varun Kapoor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Varun Kapoor reassigned HADOOP-7705:
------------------------------------
Assignee: Steve Loughran (was: Varun Kapoor)
This must've accidentally gotten assigned to me while I was reading through it with Steve - assigning back to its rightful owner.
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Fix For: 0.23.0, 0.24.0
>
> Attachments: HADOOP-7705-log4json.patch, HADOOP-7705.patch, HADOOP-7705.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Varun Kapoor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Varun Kapoor reassigned HADOOP-7705:
------------------------------------
Assignee: Varun Kapoor (was: Steve Loughran)
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Varun Kapoor
> Priority: Minor
> Fix For: 0.23.0, 0.24.0
>
> Attachments: HADOOP-7705-log4json.patch, HADOOP-7705.patch, HADOOP-7705.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Hadoop QA (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13122682#comment-13122682 ]
Hadoop QA commented on HADOOP-7705:
-----------------------------------
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12498130/HADOOP-7705-log4json.patch
against trunk revision .
+1 @author. The patch does not contain any @author tags.
+1 tests included. The patch appears to include 2 new or modified tests.
+1 javadoc. The javadoc tool did not generate any warning messages.
+1 javac. The applied patch does not increase the total number of javac compiler warnings.
+1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.
+1 release audit. The applied patch does not increase the total number of release audit warnings.
+1 core tests. The patch passed unit tests in .
+1 contrib tests. The patch passed contrib unit tests.
Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/274//testReport/
Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/274//console
This message is automatically generated.
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Attachments: HADOOP-7705-log4json.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Steve Loughran (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Loughran updated HADOOP-7705:
-----------------------------------
Status: Patch Available (was: Open)
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Attachments: HADOOP-7705-log4json.patch, HADOOP-7705.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Steve Loughran (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13122681#comment-13122681 ]
Steve Loughran commented on HADOOP-7705:
----------------------------------------
This patch is independent of the rest of the Hadoop codebase; it's a new logger than can push out JSON content that is easy for management tools to parse (indeed, the tests parse the data to verify round-tripping.
The test run shows what the output is, here are some examples from it
1. Simple log message, as it looks: one JSON node per line. All values (escaped) strings except for time_t, which is a integer
{code}
{"name":"name","time":0,"level":"DEBUG","thread":"thread1","message":"hello, world"}
{code}
2. Log with a single nested exception, reformatted as multiline for readability. The exception class is added (if provided), and the stack is included as an array.
{code}
{
"name":"testException",
"time":1317980185037,
"level":"INFO",
"thread":"quoted\"",
"message":"new line\n and {}",
"exceptionclass":"java.net.NoRouteToHostException",
"stack":[
"java.net.NoRouteToHostException: that box caught fire 3 years ago",
"\tat org.apache.hadoop.log.TestLog4Json.testException(TestLog4Json.java:49)",
"\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)",
"\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)",
"\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)",
"\tat java.lang.reflect.Method.invoke(Method.java:597)",
"\tat junit.framework.TestCase.runTest(TestCase.java:168)",
"\tat junit.framework.TestCase.runBare(TestCase.java:134)",
"\tat junit.framework.TestResult$1.protect(TestResult.java:110)",
"\tat junit.framework.TestResult.runProtected(TestResult.java:128)",
"\tat junit.framework.TestResult.run(TestResult.java:113)",
"\tat junit.framework.TestCase.run(TestCase.java:124)",
"\tat junit.framework.TestSuite.runTest(TestSuite.java:232)",
"\tat junit.framework.TestSuite.run(TestSuite.java:227)",
"\tat org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)",
"\tat org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)",
"\tat org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)",
"\tat org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:145)",
"\tat org.apache.maven.surefire.Surefire.run(Surefire.java:104)",
"\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)",
"\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)",
"\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)",
"\tat java.lang.reflect.Method.invoke(Method.java:597)",
"\tat org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)",
"\tat org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1017)"
]
}
{code}
One potential improvement would be to include the timestamp as a human readable ISO time. The reason I haven't done this is the cost of creating this data -if the target is a machine, it's not needed.
This log could be included as a (commented out) example in the conf/log4 file. It must not go in the src/test log4 file as if there is a bug in the code, that could break all tests.
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Attachments: HADOOP-7705-log4json.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13127437#comment-13127437 ]
Hudson commented on HADOOP-7705:
--------------------------------
Integrated in Hadoop-Hdfs-trunk-Commit #1159 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/1159/])
HADOOP-7705
stevel : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1183292
Files :
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/log/Log4Json.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/log/TestLog4Json.java
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Fix For: 0.23.0, 0.24.0
>
> Attachments: HADOOP-7705-log4json.patch, HADOOP-7705.patch, HADOOP-7705.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Hadoop QA (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125926#comment-13125926 ]
Hadoop QA commented on HADOOP-7705:
-----------------------------------
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12498766/HADOOP-7705.patch
against trunk revision .
+1 @author. The patch does not contain any @author tags.
+1 tests included. The patch appears to include 2 new or modified tests.
+1 javadoc. The javadoc tool did not generate any warning messages.
+1 javac. The applied patch does not increase the total number of javac compiler warnings.
+1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.
+1 release audit. The applied patch does not increase the total number of release audit warnings.
+1 core tests. The patch passed unit tests in .
+1 contrib tests. The patch passed contrib unit tests.
Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/289//testReport/
Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/289//console
This message is automatically generated.
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Attachments: HADOOP-7705-log4json.patch, HADOOP-7705.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Steve Loughran (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Loughran updated HADOOP-7705:
-----------------------------------
Affects Version/s: 0.24.0
0.23.0
Status: Patch Available (was: In Progress)
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Attachments: HADOOP-7705-log4json.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Steve Loughran (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427505#comment-13427505 ]
Steve Loughran commented on HADOOP-7705:
----------------------------------------
@Varun if you want move that back to branch-1, feel free to start a new issue.
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Fix For: 0.23.0, 0.24.0
>
> Attachments: HADOOP-7705-log4json.patch, HADOOP-7705.patch, HADOOP-7705.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Steve Loughran (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Loughran updated HADOOP-7705:
-----------------------------------
Status: Open (was: Patch Available)
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Attachments: HADOOP-7705-log4json.patch, HADOOP-7705.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Hadoop QA (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13127397#comment-13127397 ]
Hadoop QA commented on HADOOP-7705:
-----------------------------------
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12498774/HADOOP-7705.patch
against trunk revision .
+1 @author. The patch does not contain any @author tags.
+1 tests included. The patch appears to include 2 new or modified tests.
+1 javadoc. The javadoc tool did not generate any warning messages.
+1 javac. The applied patch does not increase the total number of javac compiler warnings.
-1 findbugs. The patch appears to introduce 1 new Findbugs (version 1.3.9) warnings.
+1 release audit. The applied patch does not increase the total number of release audit warnings.
+1 core tests. The patch passed unit tests in .
+1 contrib tests. The patch passed contrib unit tests.
Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/298//testReport/
Findbugs warnings: https://builds.apache.org/job/PreCommit-HADOOP-Build/298//artifact/trunk/hadoop-common-project/patchprocess/newPatchFindbugsWarningshadoop-common.html
Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/298//console
This message is automatically generated.
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Attachments: HADOOP-7705-log4json.patch, HADOOP-7705.patch, HADOOP-7705.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Steve Loughran (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Loughran updated HADOOP-7705:
-----------------------------------
Attachment: HADOOP-7705.patch
updated version with ISO formatted date included. This makes it easier for people to read, and the caching in Log4J's ISO8601 formatter reduces generation overhead.
The output of the log now looks like
{code}
{"name":"test","time":1318429136789,"date":"2011-10-12 15:18:56,789","level":"INFO","thread":"main","message":"test message"}
{code}
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Attachments: HADOOP-7705-log4json.patch, HADOOP-7705.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Work started] (HADOOP-7705) Add a lo4j back end that can
push out JSON data, one per line
Posted by "Steve Loughran (Work started) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on HADOOP-7705 started by Steve Loughran.
> Add a lo4j back end that can push out JSON data, one per line
> -------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Steve Loughran (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13122708#comment-13122708 ]
Steve Loughran commented on HADOOP-7705:
----------------------------------------
+1 for putting this in: it doesn't break anything and I have need of it. Before I commit, anyone want to review it?
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Attachments: HADOOP-7705-log4json.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Steve Loughran (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Loughran updated HADOOP-7705:
-----------------------------------
Status: Open (was: Patch Available)
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Attachments: HADOOP-7705-log4json.patch, HADOOP-7705.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13127436#comment-13127436 ]
Hudson commented on HADOOP-7705:
--------------------------------
Integrated in Hadoop-Common-trunk-Commit #1081 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/1081/])
HADOOP-7705
stevel : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1183292
Files :
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/log/Log4Json.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/log/TestLog4Json.java
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Fix For: 0.23.0, 0.24.0
>
> Attachments: HADOOP-7705-log4json.patch, HADOOP-7705.patch, HADOOP-7705.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13127527#comment-13127527 ]
Hudson commented on HADOOP-7705:
--------------------------------
Integrated in Hadoop-Mapreduce-0.23-Build #51 (See [https://builds.apache.org/job/Hadoop-Mapreduce-0.23-Build/51/])
HADOOP-7705
stevel : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1183291
Files :
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/log/Log4Json.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/log/TestLog4Json.java
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Fix For: 0.23.0, 0.24.0
>
> Attachments: HADOOP-7705-log4json.patch, HADOOP-7705.patch, HADOOP-7705.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7705) Add a log4j back end that can push
out JSON data, one per line
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13127485#comment-13127485 ]
Hudson commented on HADOOP-7705:
--------------------------------
Integrated in Hadoop-Hdfs-0.23-Build #39 (See [https://builds.apache.org/job/Hadoop-Hdfs-0.23-Build/39/])
HADOOP-7705
stevel : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1183291
Files :
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/log/Log4Json.java
* /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/log/TestLog4Json.java
> Add a log4j back end that can push out JSON data, one per line
> --------------------------------------------------------------
>
> Key: HADOOP-7705
> URL: https://issues.apache.org/jira/browse/HADOOP-7705
> Project: Hadoop Common
> Issue Type: New Feature
> Components: util
> Affects Versions: 0.23.0, 0.24.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Fix For: 0.23.0, 0.24.0
>
> Attachments: HADOOP-7705-log4json.patch, HADOOP-7705.patch, HADOOP-7705.patch
>
>
> If we had a back end for Log4j that pushed out log events in single line JSON content, we'd have something that is fairly straightforward to machine parse. If: it may be harder to do than expected. Once working HADOOP-6244 could use it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira