<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Help with creating a regex that splits API data into better format than 1 big event? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-creating-a-regex-that-splits-API-data-into-better/m-p/635863#M108772</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am getting data in via an API (using the add on builder) but having&amp;nbsp; creating a regex which splits it into a better format rather than 1 big event. Here is an example of the event:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;  "@odata.context": "https://example-app-env.aa01.aaa.aaaa-ad/odata/$metadata#Jobs",
  "@odata.count": 111,
  "value": [
    {
      "Key": "aaa1a111-aa11-11aa-a11a-11a1aa11a111",
      "StartTime": "2023-01-20T14:08:34.607Z",
      "EndTime": "2023-01-20T14:08:49.517Z",
      "State": "Successful",
      "JobPriority": "Normal",
      "Source": "Agent",
      "SourceType": "Agent",
      "BatchExecutionKey": "aaa1a111-aa11-11aa-a11a-11a1aa11a111",
      "Info": "Job completed",
      "CreationTime": "2023-01-20T14:08:34.607Z",
      "StartingScheduleId": null,
      "ReleaseName": "RobotProdLogin_DEV",
      "Type": "Attended",
      "InputArguments": "",
      "OutputArguments": "{}",
      "HostMachineName": "AAAAAAAA11111",
      "HasMediaRecorded": false,
      "PersistenceId": null,
      "ResumeVersion": null,
      "StopStrategy": null,
      "RuntimeType": "Development",
      "RequiresUserInteraction": true,
      "ReleaseVersionId": 1111,
      "EntryPointPath": null,
      "OrganizationUnitId": 1,
      "OrganizationUnitFullyQualifiedName": "Default",
      "Reference": "",
      "ProcessType": "Process",
      "ProfilingOptions": null,
      "ResumeOnSameContext": false,
      "LocalSystemAccount": "AAAAAA01\\AAA11AA",
      "OrchestratorUserIdentity": null,
      "Id": 00000
    },
    {
      "Key": "aaa1a111-aa11-11aa-a11a-11a1aa11a111",
      "StartTime": "2023-01-20T14:08:34.607Z",
      "EndTime": "2023-01-20T14:08:49.517Z",
      "State": "Successful",
      "JobPriority": "Normal",
      "Source": "Agent",
      "SourceType": "Agent",
      "BatchExecutionKey": "aaa1a111-aa11-11aa-a11a-11a1aa11a111",
      "Info": "Job completed",
      "CreationTime": "2023-01-20T14:08:34.607Z",
      "StartingScheduleId": null,
      "ReleaseName": "RobotProdLogin_DEV",
      "Type": "Attended",
      "InputArguments": "",
      "OutputArguments": "{}",
      "HostMachineName": "AAAAAAAA11111",
      "HasMediaRecorded": false,
      "PersistenceId": null,
      "ResumeVersion": null,
      "StopStrategy": null,
      "RuntimeType": "Development",
      "RequiresUserInteraction": true,
      "ReleaseVersionId": 1111,
      "EntryPointPath": null,
      "OrganizationUnitId": 1,
      "OrganizationUnitFullyQualifiedName": "Default",
      "Reference": "",
      "ProcessType": "Process",
      "ProfilingOptions": null,
      "ResumeOnSameContext": false,
      "LocalSystemAccount": "AAAAAA01\\AAA11AA",
      "OrchestratorUserIdentity": null,
      "Id": 00000
    },&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How i want it to look.&lt;BR /&gt;Event 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; "@odata.context": "https://example-app-env.aa01.aaa.aaaa-ad/odata/$metadata#Jobs",
  "@odata.count": 111,
  "value": [
    {&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Event 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    {
      "Key": "aaa1a111-aa11-11aa-a11a-11a1aa11a111",
      "StartTime": "2023-01-20T14:08:34.607Z",
      "EndTime": "2023-01-20T14:08:49.517Z",
      "State": "Successful",
      "JobPriority": "Normal",
      "Source": "Agent",
      "SourceType": "Agent",
      "BatchExecutionKey": "aaa1a111-aa11-11aa-a11a-11a1aa11a111",
      "Info": "Job completed",
      "CreationTime": "2023-01-20T14:08:34.607Z",
      "StartingScheduleId": null,
      "ReleaseName": "RobotProdLogin_DEV",
      "Type": "Attended",
      "InputArguments": "",
      "OutputArguments": "{}",
      "HostMachineName": "AAAAAAAA11111",
      "HasMediaRecorded": false,
      "PersistenceId": null,
      "ResumeVersion": null,
      "StopStrategy": null,
      "RuntimeType": "Development",
      "RequiresUserInteraction": true,
      "ReleaseVersionId": 1111,
      "EntryPointPath": null,
      "OrganizationUnitId": 1,
      "OrganizationUnitFullyQualifiedName": "Default",
      "Reference": "",
      "ProcessType": "Process",
      "ProfilingOptions": null,
      "ResumeOnSameContext": false,
      "LocalSystemAccount": "AAAAAA01\\AAA11AA",
      "OrchestratorUserIdentity": null,
      "Id": 00000
    },&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you help?&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2023 19:37:14 GMT</pubDate>
    <dc:creator>vishalduttauk</dc:creator>
    <dc:date>2023-03-24T19:37:14Z</dc:date>
    <item>
      <title>Help with creating a regex that splits API data into better format than 1 big event?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-creating-a-regex-that-splits-API-data-into-better/m-p/635863#M108772</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am getting data in via an API (using the add on builder) but having&amp;nbsp; creating a regex which splits it into a better format rather than 1 big event. Here is an example of the event:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;  "@odata.context": "https://example-app-env.aa01.aaa.aaaa-ad/odata/$metadata#Jobs",
  "@odata.count": 111,
  "value": [
    {
      "Key": "aaa1a111-aa11-11aa-a11a-11a1aa11a111",
      "StartTime": "2023-01-20T14:08:34.607Z",
      "EndTime": "2023-01-20T14:08:49.517Z",
      "State": "Successful",
      "JobPriority": "Normal",
      "Source": "Agent",
      "SourceType": "Agent",
      "BatchExecutionKey": "aaa1a111-aa11-11aa-a11a-11a1aa11a111",
      "Info": "Job completed",
      "CreationTime": "2023-01-20T14:08:34.607Z",
      "StartingScheduleId": null,
      "ReleaseName": "RobotProdLogin_DEV",
      "Type": "Attended",
      "InputArguments": "",
      "OutputArguments": "{}",
      "HostMachineName": "AAAAAAAA11111",
      "HasMediaRecorded": false,
      "PersistenceId": null,
      "ResumeVersion": null,
      "StopStrategy": null,
      "RuntimeType": "Development",
      "RequiresUserInteraction": true,
      "ReleaseVersionId": 1111,
      "EntryPointPath": null,
      "OrganizationUnitId": 1,
      "OrganizationUnitFullyQualifiedName": "Default",
      "Reference": "",
      "ProcessType": "Process",
      "ProfilingOptions": null,
      "ResumeOnSameContext": false,
      "LocalSystemAccount": "AAAAAA01\\AAA11AA",
      "OrchestratorUserIdentity": null,
      "Id": 00000
    },
    {
      "Key": "aaa1a111-aa11-11aa-a11a-11a1aa11a111",
      "StartTime": "2023-01-20T14:08:34.607Z",
      "EndTime": "2023-01-20T14:08:49.517Z",
      "State": "Successful",
      "JobPriority": "Normal",
      "Source": "Agent",
      "SourceType": "Agent",
      "BatchExecutionKey": "aaa1a111-aa11-11aa-a11a-11a1aa11a111",
      "Info": "Job completed",
      "CreationTime": "2023-01-20T14:08:34.607Z",
      "StartingScheduleId": null,
      "ReleaseName": "RobotProdLogin_DEV",
      "Type": "Attended",
      "InputArguments": "",
      "OutputArguments": "{}",
      "HostMachineName": "AAAAAAAA11111",
      "HasMediaRecorded": false,
      "PersistenceId": null,
      "ResumeVersion": null,
      "StopStrategy": null,
      "RuntimeType": "Development",
      "RequiresUserInteraction": true,
      "ReleaseVersionId": 1111,
      "EntryPointPath": null,
      "OrganizationUnitId": 1,
      "OrganizationUnitFullyQualifiedName": "Default",
      "Reference": "",
      "ProcessType": "Process",
      "ProfilingOptions": null,
      "ResumeOnSameContext": false,
      "LocalSystemAccount": "AAAAAA01\\AAA11AA",
      "OrchestratorUserIdentity": null,
      "Id": 00000
    },&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How i want it to look.&lt;BR /&gt;Event 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; "@odata.context": "https://example-app-env.aa01.aaa.aaaa-ad/odata/$metadata#Jobs",
  "@odata.count": 111,
  "value": [
    {&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Event 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    {
      "Key": "aaa1a111-aa11-11aa-a11a-11a1aa11a111",
      "StartTime": "2023-01-20T14:08:34.607Z",
      "EndTime": "2023-01-20T14:08:49.517Z",
      "State": "Successful",
      "JobPriority": "Normal",
      "Source": "Agent",
      "SourceType": "Agent",
      "BatchExecutionKey": "aaa1a111-aa11-11aa-a11a-11a1aa11a111",
      "Info": "Job completed",
      "CreationTime": "2023-01-20T14:08:34.607Z",
      "StartingScheduleId": null,
      "ReleaseName": "RobotProdLogin_DEV",
      "Type": "Attended",
      "InputArguments": "",
      "OutputArguments": "{}",
      "HostMachineName": "AAAAAAAA11111",
      "HasMediaRecorded": false,
      "PersistenceId": null,
      "ResumeVersion": null,
      "StopStrategy": null,
      "RuntimeType": "Development",
      "RequiresUserInteraction": true,
      "ReleaseVersionId": 1111,
      "EntryPointPath": null,
      "OrganizationUnitId": 1,
      "OrganizationUnitFullyQualifiedName": "Default",
      "Reference": "",
      "ProcessType": "Process",
      "ProfilingOptions": null,
      "ResumeOnSameContext": false,
      "LocalSystemAccount": "AAAAAA01\\AAA11AA",
      "OrchestratorUserIdentity": null,
      "Id": 00000
    },&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you help?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 19:37:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-creating-a-regex-that-splits-API-data-into-better/m-p/635863#M108772</guid>
      <dc:creator>vishalduttauk</dc:creator>
      <dc:date>2023-03-24T19:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Linebreak help</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-creating-a-regex-that-splits-API-data-into-better/m-p/635885#M108777</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228513"&gt;@vishalduttauk&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;please try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(^\"|\{)&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/VAaTET/1" target="_blank"&gt;https://regex101.com/r/VAaTET/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 10:43:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-creating-a-regex-that-splits-API-data-into-better/m-p/635885#M108777</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-03-24T10:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Linebreak help</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-creating-a-regex-that-splits-API-data-into-better/m-p/636156#M108810</link>
      <description>&lt;P&gt;Thanks &lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 13:59:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-creating-a-regex-that-splits-API-data-into-better/m-p/636156#M108810</guid>
      <dc:creator>vishalduttauk</dc:creator>
      <dc:date>2023-03-27T13:59:18Z</dc:date>
    </item>
  </channel>
</rss>

