<?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 Re: Help splitting out a JSON file into multiple events in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Help-splitting-out-a-JSON-file-into-multiple-events/m-p/600169#M104635</link>
    <description>&lt;P&gt;That's excellent thank you! Got that working, however all the field names have the number in front of them... Any idea how I'd get around this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-06-01 at 21.53.42.png" style="width: 808px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19902i141E245397C40F14/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-06-01 at 21.53.42.png" alt="Screenshot 2022-06-01 at 21.53.42.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jun 2022 20:54:30 GMT</pubDate>
    <dc:creator>dumdees</dc:creator>
    <dc:date>2022-06-01T20:54:30Z</dc:date>
    <item>
      <title>Help splitting out a JSON file into multiple events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-splitting-out-a-JSON-file-into-multiple-events/m-p/600158#M104631</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;There are lots of forum topics here on this but I'm really struggling to get my head around it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have the following information in JSON:&amp;nbsp;&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;{
    "4": {
        "state": {
            "on": false,
            "bri": 254,
            "hue": 8418,
            "sat": 140,
            "effect": "none",
            "xy": [
                0.5053,
                0.4152
            ],
            "ct": 454,
            "alert": "select",
            "colormode": "ct",
            "mode": "homeautomation",
            "reachable": false
        },
        "swupdate": {
            "state": "transferring",
            "lastinstall": "2020-03-03T14:19:37"
        },
        "type": "Extended color light",
        "name": "Hue lightstrip plus 1",
        "modelid": "LST002",
        "manufacturername": "Signify Netherlands B.V.",
        "productname": "Hue lightstrip plus",
        "capabilities": {
            "certified": true,
            "control": {
                "mindimlevel": 40,
                "maxlumen": 1600,
                "colorgamuttype": "C",
                "colorgamut": [
                    [
                        0.6915,
                        0.3083
                    ],
                    [
                        0.17,
                        0.7
                    ],
                    [
                        0.1532,
                        0.0475
                    ]
                ],
                "ct": {
                    "min": 153,
                    "max": 500
                }
            },
            "streaming": {
                "renderer": true,
                "proxy": true
            }
        },
        "config": {
            "archetype": "huelightstrip",
            "function": "mixed",
            "direction": "omnidirectional",
            "startup": {
                "mode": "safety",
                "configured": true
            }
        },
        "uniqueid": "00:17:88:01:04:06:ae:3d-0b",
        "swversion": "1.50.2_r30933",
        "swconfigid": "59F2C3A3",
        "productid": "Philips-LST002-1-LedStripsv3"
    },
    "5": {
        "state": {
            "on": false,
            "bri": 144,
            "hue": 7676,
            "sat": 199,
            "effect": "none",
            "xy": [
                0.5016,
                0.4151
            ],
            "ct": 443,
            "alert": "select",
            "colormode": "xy",
            "mode": "homeautomation",
            "reachable": true
        },
        "swupdate": {
            "state": "noupdates",
            "lastinstall": "2021-08-13T13:53:48"
        },
        "type": "Extended color light",
        "name": "Upstairs Hall",
        "modelid": "LCT015",
        "manufacturername": "Signify Netherlands B.V.",
        "productname": "Hue color lamp",
        "capabilities": {
            "certified": true,
            "control": {
                "mindimlevel": 1000,
                "maxlumen": 806,
                "colorgamuttype": "C",
                "colorgamut": [
                    [
                        0.6915,
                        0.3083
                    ],
                    [
                        0.17,
                        0.7
                    ],
                    [
                        0.1532,
                        0.0475
                    ]
                ],
                "ct": {
                    "min": 153,
                    "max": 500
                }
            },
            "streaming": {
                "renderer": true,
                "proxy": true
            }
        },
        "config": {
            "archetype": "sultanbulb",
            "function": "mixed",
            "direction": "omnidirectional",
            "startup": {
                "mode": "safety",
                "configured": true
            }
        },
        "uniqueid": "00:17:88:01:04:ff:49:53-0b",
        "swversion": "1.88.1",
        "swconfigid": "76B74E79",
        "productid": "Philips-LCT015-1-A19ECLv5"
    },&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I am wanting information for "4" and "5" to be ingested as&amp;nbsp;&lt;STRONG&gt;separate&amp;nbsp;events&lt;/STRONG&gt; at index time. I understand that one could use regex to filter this properly, but honestly I'm struggling to wrap my head around how.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any help would be massively appreciated.&lt;BR /&gt;&lt;BR /&gt;Many Thanks,&lt;/P&gt;
&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 19:23:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-splitting-out-a-JSON-file-into-multiple-events/m-p/600158#M104631</guid>
      <dc:creator>dumdees</dc:creator>
      <dc:date>2022-06-01T19:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help splitting out a JSON file into multiple events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-splitting-out-a-JSON-file-into-multiple-events/m-p/600161#M104632</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ &amp;lt;SOURCETYPE NAME&amp;gt; ]
SHOULD_LINEMERGE=false
LINE_BREAKER=([\r\n]+)(?=\s+\"\d+\":)
NO_BINARY_CHECK=true
CHARSET=UTF-8
disabled=false
SEDCMD-removeHeader=s/^\{$//
SEDCMD-addHeader=s/^\s+\"/{"/
SEDCMD-addFooter=s/\},$/}\n}/&lt;/LI-CODE&gt;&lt;P&gt;You'll have to add timestamp parsing config as well (use timestamp on the event OR use current time)&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 19:53:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-splitting-out-a-JSON-file-into-multiple-events/m-p/600161#M104632</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-06-01T19:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help splitting out a JSON file into multiple events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-splitting-out-a-JSON-file-into-multiple-events/m-p/600169#M104635</link>
      <description>&lt;P&gt;That's excellent thank you! Got that working, however all the field names have the number in front of them... Any idea how I'd get around this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-06-01 at 21.53.42.png" style="width: 808px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19902i141E245397C40F14/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-06-01 at 21.53.42.png" alt="Screenshot 2022-06-01 at 21.53.42.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 20:54:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-splitting-out-a-JSON-file-into-multiple-events/m-p/600169#M104635</guid>
      <dc:creator>dumdees</dc:creator>
      <dc:date>2022-06-01T20:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help splitting out a JSON file into multiple events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-splitting-out-a-JSON-file-into-multiple-events/m-p/600216#M104640</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/246396"&gt;@dumdees&lt;/a&gt;&amp;nbsp;- I've not tested it but try this LINE_BREAKER in the staging/testing environment.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(,*{*[\r\n]+\s+\"\d+\":\s*)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 05:35:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-splitting-out-a-JSON-file-into-multiple-events/m-p/600216#M104640</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-06-02T05:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help splitting out a JSON file into multiple events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-splitting-out-a-JSON-file-into-multiple-events/m-p/600227#M104642</link>
      <description>&lt;P&gt;Absolutely amazing. Can't thank you enough!&lt;BR /&gt;&lt;BR /&gt;I really need to read up more on how Splunk uses regex to split event data like this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 07:24:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-splitting-out-a-JSON-file-into-multiple-events/m-p/600227#M104642</guid>
      <dc:creator>dumdees</dc:creator>
      <dc:date>2022-06-02T07:24:13Z</dc:date>
    </item>
  </channel>
</rss>

