<?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: How to configure Splunk to parse and recognize key value pairs with brackets in my sample data? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257505#M49455</link>
    <description>&lt;P&gt;Using props on indexers the events don't look the same as preview and are breaking on the [ ...]  &lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2016 05:29:35 GMT</pubDate>
    <dc:creator>smudge797</dc:creator>
    <dc:date>2016-09-02T05:29:35Z</dc:date>
    <item>
      <title>How to configure Splunk to parse and recognize key value pairs with brackets in my sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257498#M49448</link>
      <description>&lt;P&gt;I have single event looking like below and trying to figure the best way for Splunk to recognize the key-value pairs. Ideally would have each line as a separate event.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
  "compsModelObjectName": "Desktop",
  "compsObjectList": [
    {
      "buildGUID": "8D36EF88-3319-4770-BDD3-DCDA614C40DB",
      "buildType": "ONEDESK - FULLBUILD",
      "buildVersion": "2.22.080214-1002",
      "description": "MY TEXT IN HERE",
      "purpose": "Normal",
      "lastScanDate": "Apr 29, 2010",
      "assetName": "WLDNETSBWGS41J",
      "dateModified": "Mar 27, 2013",
      "dateInstalled": "Dec 17, 2009",
      "invNo": "DIMS-1268745",
      "serialNo": "BWGS41J",
      "manufacturer": "UNKNOWN",
      "model": "UNKNOWN PC",
      "assetTag": "Z00880152",
      "status": "INAC",
      "productClass": "UNKNOWN PC",
      "productType": "UNKNOWN",
      "owner": "X1111111",
      "subStatus": "Disposal",
      "compsIdentifier": "DIMS-1268745"
    },
    {
      "buildGUID": "JENYX1111111XP",
      "buildType": "JENY",
      "description": "Unknown Class",
      "purpose": "Normal",
      "lastScanDate": "Nov 1, 2010",
      "assetName": "JENYX1111111XP",
      "dateModified": "Mar 31, 2011",
      "dateInstalled": "Jan 1, 1970",
      "invNo": "TEXTTEXT",
      "serialNo": "JENYX1111111XP",
      "manufacturer": "JENY",
      "model": "JENY",
      "assetTag": "D04936865",
      "status": "INAC",
      "productClass": "JENY",
      "productType": "JENY",
      "owner": "X1111111",
      "subStatus": "Disposal",
      "compsIdentifier": "DIMS-4182421"
    },
    {
      "buildGUID": "JENYX1111111",
      "buildType": "JENY",
      "description": "Unknown Class",
      "purpose": "Normal",
      "lastScanDate": "Nov 21, 2011",
      "assetName": "JENYX1111111",
      "dateModified": "Nov 20, 2011",
      "dateInstalled": "Jan 1, 1970",
      "invNo": "DIMS-4827747",
      "serialNo": "JENYX1111111",
      "manufacturer": "JENY",
      "model": "JENY",
      "assetTag": "D06722795",
      "status": "INAC",
      "productClass": "JENY",
      "productType": "JENY",
      "owner": "X1111111",
      "subStatus": "Disposal",
      "compsIdentifier": "DIMS-4827747"
    },
    {
      "buildGUID": "2DB77FB4-C1D2-4AD4-9453-4A06D4017076",
      "buildType": "xSPACE - FULLBUILD",
      "buildVersion": "4.12",
      "description": "Business Basic PC",
      "domain": "EMEA",
      "purpose": "Normal",
      "lastScanDate": "Aug 30, 2016",
      "assetName": "WC2291Y7F",
      "dateModified": "Aug 31, 2016",
      "dateInstalled": "Jun 24, 2013",
      "invNo": "DIMS-5916063",
      "serialNo": "CZC2291Y7F",
      "manufacturer": "DP",
      "model": "Z611",
      "assetTag": "08192",
      "status": "AC",
      "productClass": "Desktop",
      "productType": "DESKTOP",
      "owner": "X1111111",
      "subStatus": "CONFIGURED",
      "compsIdentifier": "DIMS-5916063"
    }
  ],
  "statusCode": 200
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Sep 2016 21:35:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257498#M49448</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-09-01T21:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to parse and recognize key value pairs with brackets in my sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257499#M49449</link>
      <description>&lt;P&gt;That looks like JSON format.  What is your sourcetype set to?  Setting it to _json seems like it would do the trick.  You can test this with a sample of the data using Settings &amp;gt; Add Data and uploading a sample.  You don't have to go through the entire process, but it will show you how the extraction would look when the sourcetype is set to _json.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 23:13:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257499#M49449</guid>
      <dc:creator>justinatpnnl</dc:creator>
      <dc:date>2016-09-01T23:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to parse and recognize key value pairs with brackets in my sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257500#M49450</link>
      <description>&lt;P&gt;Looks much better in the previewer but do i have to use _json sourcetype name?  Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 23:41:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257500#M49450</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-09-01T23:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to parse and recognize key value pairs with brackets in my sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257501#M49451</link>
      <description>&lt;P&gt;If you want Splunk to understand how to work with it, the best option is to mark it with the correct sourcetype.  Are you wanting to configure your own sourcetype to automatically extract these fields?  Or do you want to do something manually at search time?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 23:47:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257501#M49451</guid>
      <dc:creator>justinatpnnl</dc:creator>
      <dc:date>2016-09-01T23:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to parse and recognize key value pairs with brackets in my sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257502#M49452</link>
      <description>&lt;P&gt;If you are using a custom sourcetype, you can try adding &lt;CODE&gt;INDEXED_EXTRACTION = JSON&lt;/CODE&gt; to your props.conf for your sourcetype.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.3/Admin/Propsconf"&gt;https://docs.splunk.com/Documentation/Splunk/6.4.3/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 23:50:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257502#M49452</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-01T23:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to parse and recognize key value pairs with brackets in my sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257503#M49453</link>
      <description>&lt;P&gt;Yes i want to use custom sourcetype to extract.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 23:53:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257503#M49453</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-09-01T23:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to parse and recognize key value pairs with brackets in my sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257504#M49454</link>
      <description>&lt;P&gt;Ok, if you want to keep your custom sourcetype name, then you'll need to add a props.conf entry for it.  You can add it to &lt;CODE&gt;$SPLUNK_HOME/etc/system/local/props.conf&lt;/CODE&gt;, but be sure it isn't going to conflict with an existing sourcetype:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_custom_sourcetype_name]
INDEXED_EXTRACTIONS = json
KV_MODE = none
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Restart Splunk after adding it, and you should be good to go.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 01:35:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257504#M49454</guid>
      <dc:creator>justinatpnnl</dc:creator>
      <dc:date>2016-09-02T01:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to parse and recognize key value pairs with brackets in my sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257505#M49455</link>
      <description>&lt;P&gt;Using props on indexers the events don't look the same as preview and are breaking on the [ ...]  &lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 05:29:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257505#M49455</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-09-02T05:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to parse and recognize key value pairs with brackets in my sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257506#M49456</link>
      <description>&lt;P&gt;If each event is not on a single line, you will need to work on your line breaking configuration so it breaks where you expect.  How is this data coming into Splunk?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 14:40:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257506#M49456</guid>
      <dc:creator>justinatpnnl</dc:creator>
      <dc:date>2016-09-02T14:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to parse and recognize key value pairs with brackets in my sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257507#M49457</link>
      <description>&lt;P&gt;a single event is rendering like this:&lt;/P&gt;

&lt;P&gt;{&lt;BR /&gt;
  "compsModelObjectName": "Desktop",&lt;BR /&gt;
  "compsObjectList": [&lt;BR /&gt;
    {&lt;BR /&gt;
      "buildGUID": "8D36EF88-3319-4770-BDD3-DCDA614C40DB",&lt;BR /&gt;
      "buildType": "ONEDESK - FULLBUILD",&lt;BR /&gt;
      "buildVersion": "2.22.080214-1002",&lt;/P&gt;

&lt;P&gt;....&lt;/P&gt;

&lt;P&gt;"subStatus": "CONFIGURED",&lt;BR /&gt;
      "compsIdentifier": "DIMS-5916063"&lt;BR /&gt;
    }&lt;BR /&gt;
  ],&lt;BR /&gt;
  "statusCode": 200&lt;BR /&gt;
}&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 16:41:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257507#M49457</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-09-02T16:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to parse and recognize key value pairs with brackets in my sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257508#M49458</link>
      <description>&lt;P&gt;Are these being written to a file or being ingested another way?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 16:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257508#M49458</guid>
      <dc:creator>justinatpnnl</dc:creator>
      <dc:date>2016-09-02T16:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to parse and recognize key value pairs with brackets in my sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257509#M49459</link>
      <description>&lt;P&gt;inserted via curl, that make  a difference?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 16:56:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257509#M49459</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-09-02T16:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to parse and recognize key value pairs with brackets in my sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257510#M49460</link>
      <description>&lt;P&gt;Yes, but just in the way you tell Splunk how to break events.  So right now it is breaking them on the opening of an array &lt;CODE&gt;[&lt;/CODE&gt; so we need to tell it not to.&lt;/P&gt;

&lt;P&gt;As a test, have you tried sending an event using the sourcetype _json to see if that performs as expected?  If it does, you might try adding this to your custom sourcetype stanza:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;BREAK_ONLY_BEFORE = ^{
DATETIME_CONFIG = CURRENT
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Sep 2016 17:05:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257510#M49460</guid>
      <dc:creator>justinatpnnl</dc:creator>
      <dc:date>2016-09-02T17:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to parse and recognize key value pairs with brackets in my sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257511#M49461</link>
      <description>&lt;P&gt;Set in system local in indexers and still no change. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 17:19:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257511#M49461</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-09-02T17:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to parse and recognize key value pairs with brackets in my sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257512#M49462</link>
      <description>&lt;P&gt;What is the name of your custom sourcetype?  Have you tried setting it for a test to _json and see if it works?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 17:24:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257512#M49462</guid>
      <dc:creator>justinatpnnl</dc:creator>
      <dc:date>2016-09-02T17:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to parse and recognize key value pairs with brackets in my sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257513#M49463</link>
      <description>&lt;P&gt;I set that in props.conf system/local on indexer and still not working?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 17:47:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257513#M49463</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-09-02T17:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to parse and recognize key value pairs with brackets in my sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257514#M49464</link>
      <description>&lt;P&gt;Depending on what you want do to you can use mvexpand.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| mvexpand compsObjectList 

OR

...| mvexpand compsObjectList | spath
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 19:04:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257514#M49464</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2016-09-02T19:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to parse and recognize key value pairs with brackets in my sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257515#M49465</link>
      <description>&lt;P&gt;The BREAK_ONLY_BEFORE made no difference..?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:49:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257515#M49465</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2020-09-29T10:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to parse and recognize key value pairs with brackets in my sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257516#M49466</link>
      <description>&lt;P&gt;Tried changing to monitoring a flat file and still no change.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 12:30:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257516#M49466</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-09-07T12:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to parse and recognize key value pairs with brackets in my sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257517#M49467</link>
      <description>&lt;P&gt;@smudge797 I am getting email notifications that you are replying, but nothing is displaying on the page here.  Are you seeing the same thing?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 13:23:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-parse-and-recognize-key-value-pairs/m-p/257517#M49467</guid>
      <dc:creator>justinatpnnl</dc:creator>
      <dc:date>2016-09-07T13:23:09Z</dc:date>
    </item>
  </channel>
</rss>

