# Logstash Conf for Mainframe Logs

**URL:** <https://discuss.elastic.co/t/logstash-conf-for-mainframe-logs/114696>\
**Category:** Logstash\
**Created:** [January 9, 2018, 11:23am UTC](https://discuss.elastic.co/t/logstash-conf-for-mainframe-logs/114696 "2018-01-09T11:23:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sajeew.Ganesh](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@Sajeew.Ganesh](https://discuss.elastic.co/u/Sajeew.Ganesh)\
**Post date:** [January 9, 2018, 11:23am UTC](https://discuss.elastic.co/t/logstash-conf-for-mainframe-logs/114696/1 "2018-01-09T11:23:32Z")

</div>

Hi All,

I have a mainframes systems log, How do we grok for the julian date?  
The sample log is mentioned below.

X 0000000 T158 2017208 23:59:00.27 SYSLOG 00000000 IEE042I SYSTEM LOG DATA SET INITIALIZED

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 9, 2018, 11:23am UTC](https://discuss.elastic.co/t/logstash-conf-for-mainframe-logs/114696/2 "2018-01-09T11:23:45Z")

</div>

What have you tried?

---

<div class="post-metadata">

**Author:** ![Sajeew.Ganesh](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@Sajeew.Ganesh](https://discuss.elastic.co/u/Sajeew.Ganesh)\
**Post date:** [January 9, 2018, 11:54am UTC](https://discuss.elastic.co/t/logstash-conf-for-mainframe-logs/114696/3 "2018-01-09T11:54:09Z")

</div>

@warkolm  
i used the below for the time,

{TIMESTAMP\_ISO8601}

The below grok is not the complete one.

grok {  
match =\> ["message", "\A%{TIMESTAMP\_ISO8601:date: }"]  
overwrite =\> ["message"]  
}  
date {  
match =\> ["Date","yyyyddd HH:mm:ss,SSS"]  
target =\> "Date"  
}

---

<div class="post-metadata">

**Author:** ![Sajeew.Ganesh](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@Sajeew.Ganesh](https://discuss.elastic.co/u/Sajeew.Ganesh)\
**Post date:** [February 5, 2018, 10:23am UTC](https://discuss.elastic.co/t/logstash-conf-for-mainframe-logs/114696/4 "2018-02-05T10:23:37Z")

</div>

Is there a method to convert the julian date format to a normal user readable one. Or will it be done by logstash itself?

---

<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:** [March 5, 2018, 10:24am UTC](https://discuss.elastic.co/t/logstash-conf-for-mainframe-logs/114696/5 "2018-03-05T10:24:03Z")

</div>

Closed on March 5, 2018, 10:24am UTC

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