# Split large json file

**URL:** <https://discuss.elastic.co/t/split-large-json-file/333145>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 11, 2023, 4:09am UTC](https://discuss.elastic.co/t/split-large-json-file/333145 "2023-05-11T04:09:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sree3](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@sree3](https://discuss.elastic.co/u/sree3)\
**Post date:** [May 11, 2023, 4:09am UTC](https://discuss.elastic.co/t/split-large-json-file/333145/1 "2023-05-11T04:09:14Z")

</div>

Hi All,

Trying to split a single json file into multiple one's and then to output those single files  
Could someone please help to get this done  
Input Data is json file

{  
"Computer": "node2",  
"ContainerID": "cbcf",  
"LogEntry": "Logs",  
"LogEntrySource": "stdout",  
"SourceSystem": "Containers",  
"TimeGenerated": "2023-03-06T02:29:40.4069040Z",  
"Type": "ContainerLog",  
"\_Internal\_WorkspaceResourceId": "message"  
}

{  
"Computer": "node3",  
"ContainerID": "cbdf",  
"LogEntry": "Logs",  
"LogEntrySource": "stdout",  
"SourceSystem": "Containers",  
"TimeGenerated": "2023-03-07T02:29:40.4069040Z",  
"Type": "ContainerLog",  
"\_Internal\_WorkspaceResourceId": "message"  
}

Expected Output

Event#1  
{  
"Computer": "node2",  
"ContainerID": "cbcf",  
"LogEntry": "Logs",  
"LogEntrySource": "stdout",  
"SourceSystem": "Containers",  
"TimeGenerated": "2023-03-06T02:29:40.4069040Z",  
"Type": "ContainerLog",  
"\_Internal\_WorkspaceResourceId": "message"  
}

Event#2  
{  
"Computer": "node3",  
"ContainerID": "cbdf",  
"LogEntry": "Logs",  
"LogEntrySource": "stdout",  
"SourceSystem": "Containers",  
"TimeGenerated": "2023-03-07T02:29:40.4069040Z",  
"Type": "ContainerLog",  
"\_Internal\_WorkspaceResourceId": "message"  
}

---

<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 8, 2023, 6:09am UTC](https://discuss.elastic.co/t/split-large-json-file/333145/2 "2023-06-08T06:09:59Z")

</div>

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