# Parse log4j schema error

**URL:** <https://discuss.elastic.co/t/parse-log4j-schema-error/182914>\
**Category:** Logstash\
**Created:** [May 27, 2019, 12:58pm UTC](https://discuss.elastic.co/t/parse-log4j-schema-error/182914 "2019-05-27T12:58:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zegdene](https://avatars.discourse-cdn.com/v4/letter/z/76d3ee/32.png) [@zegdene](https://discuss.elastic.co/u/zegdene)\
**Post date:** [May 27, 2019, 12:58pm UTC](https://discuss.elastic.co/t/parse-log4j-schema-error/182914/1 "2019-05-27T12:58:31Z")

</div>

Hello, I would like parse lo4j file and the result of schema is:  
\> {

> ```
> "logger_name" => "org.apache.spark.SparkContext",
> "path" => "org.apache.spark.SparkContext",
> "class" => "?",
> "priority" => "INFO",
> "timestamp" => 2019-05-27T12:26:13.052Z,
> "method" => "?",
> "thread" => "Thread-1",
> "@version" => "1",
> "file" => "?:?"
> }
> 
> ```

I need to parse the value of "file", "method"and "class"  
Anyone Answer for this problem?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 24, 2019, 12:58pm UTC](https://discuss.elastic.co/t/parse-log4j-schema-error/182914/2 "2019-06-24T12:58:34Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
