<?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 with props.conf configuration to remove outer curly bracket before ingesting JSON file to get event ID in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-configuration-to-remove-outer-curly-bracket/m-p/299957#M56737</link>
    <description>&lt;P&gt;Interesting, that doesn't quite match the documentation but glad it works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
Perhaps you can accept your own answer here?&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2017 19:44:18 GMT</pubDate>
    <dc:creator>gjanders</dc:creator>
    <dc:date>2017-10-10T19:44:18Z</dc:date>
    <item>
      <title>Help with props.conf configuration to remove outer curly bracket before ingesting JSON file to get event ID</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-configuration-to-remove-outer-curly-bracket/m-p/299952#M56732</link>
      <description>&lt;P&gt;props.conf to remove outer curly bracket before ingesting json file from&lt;BR /&gt;
{&lt;BR /&gt;
   "filters": [&lt;BR /&gt;
    {&lt;BR /&gt;
      "id": "94960710-78a8-139d-6e52-5845eba8ebc9",&lt;BR /&gt;
      "name": "admin",&lt;BR /&gt;
    },&lt;BR /&gt;
    {&lt;BR /&gt;
      "id": "ec6402e0-3874-bc4d-715b-1c1f1b7bd695",&lt;BR /&gt;
      "name": "test",&lt;BR /&gt;
    }&lt;BR /&gt;
    ]&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;to &lt;BR /&gt;
   "filters": [&lt;BR /&gt;
    {&lt;BR /&gt;
      "id": "94960710-78a8-139d-6e52-5845eba8ebc9",&lt;BR /&gt;
      "name": "admin",&lt;BR /&gt;
    },&lt;BR /&gt;
    {&lt;BR /&gt;
      "id": "ec6402e0-3874-bc4d-715b-1c1f1b7bd695",&lt;BR /&gt;
      "name": "test",&lt;BR /&gt;
    }&lt;BR /&gt;
    ]&lt;BR /&gt;
so that I can get id/name under different events&lt;BR /&gt;
I tried with JSON_TRIM_BRACES_IN_ARRAY_NAMES=true and mount_point=filters with no result&lt;BR /&gt;
Please advise.&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:12:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-configuration-to-remove-outer-curly-bracket/m-p/299952#M56732</guid>
      <dc:creator>lim2</dc:creator>
      <dc:date>2020-09-29T16:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help with props.conf configuration to remove outer curly bracket before ingesting JSON file to get event ID</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-configuration-to-remove-outer-curly-bracket/m-p/299953#M56733</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; [your_sourcetype_goes_here]
 SEDCMD-removebracket = s/^{//g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That is assuming the { is the very first line of the event, if not the regular expression might need some tweaking. If you wanted to work over multiline mode you can as per this &lt;A href="https://answers.splunk.com/answers/127780/sedcmd-with-multiline-mode-doesnt-work.html"&gt;answer&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Oct 2017 13:02:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-configuration-to-remove-outer-curly-bracket/m-p/299953#M56733</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2017-10-08T13:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help with props.conf configuration to remove outer curly bracket before ingesting JSON file to get event ID</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-configuration-to-remove-outer-curly-bracket/m-p/299954#M56734</link>
      <description>&lt;P&gt;Thanks for the idea, I will also try with SEDCMD-removebracket = 1d;$d (from sed -e -i '1d;$d' jsonfile) &lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 12:07:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-configuration-to-remove-outer-curly-bracket/m-p/299954#M56734</guid>
      <dc:creator>lim2</dc:creator>
      <dc:date>2017-10-10T12:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with props.conf configuration to remove outer curly bracket before ingesting JSON file to get event ID</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-configuration-to-remove-outer-curly-bracket/m-p/299955#M56735</link>
      <description>&lt;P&gt;From the props.conf documentation you will need to use a s/... version, it appears to be slightly different to sed on Unix but I think you get the idea of the answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* A sed script is a space-separated list of sed commands. Currently the
  following subset of sed commands is supported:
    * replace (s) and character substitution (y).
* Syntax:
    * replace - s/regex/replacement/flags
      * regex is a perl regular expression (optionally containing capturing
        groups).
      * replacement is a string to replace the regex match. Use \n for back
        references, where "n" is a single digit.
      * flags can be either: g to replace all matches, or a number to
        replace a specified match.
    * substitute - y/string1/string2/
      * substitutes the string1[i] with string2[i]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Oct 2017 12:29:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-configuration-to-remove-outer-curly-bracket/m-p/299955#M56735</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2017-10-10T12:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help with props.conf configuration to remove outer curly bracket before ingesting JSON file to get event ID</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-configuration-to-remove-outer-curly-bracket/m-p/299956#M56736</link>
      <description>&lt;P&gt;Added following line in props.conf seemed to have worked for removing the outer curly brackets.&lt;BR /&gt;
SEDCMD-removebracket = '1d;$d' &lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 14:26:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-configuration-to-remove-outer-curly-bracket/m-p/299956#M56736</guid>
      <dc:creator>lim2</dc:creator>
      <dc:date>2017-10-10T14:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with props.conf configuration to remove outer curly bracket before ingesting JSON file to get event ID</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-configuration-to-remove-outer-curly-bracket/m-p/299957#M56737</link>
      <description>&lt;P&gt;Interesting, that doesn't quite match the documentation but glad it works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
Perhaps you can accept your own answer here?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 19:44:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-configuration-to-remove-outer-curly-bracket/m-p/299957#M56737</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2017-10-10T19:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with props.conf configuration to remove outer curly bracket before ingesting JSON file to get event ID</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-configuration-to-remove-outer-curly-bracket/m-p/299958#M56738</link>
      <description>&lt;P&gt;I messaged the docs team to verify with dev team this works this way and if so update the docs &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 19:59:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-configuration-to-remove-outer-curly-bracket/m-p/299958#M56738</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2017-10-10T19:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help with props.conf configuration to remove outer curly bracket before ingesting JSON file to get event ID</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-configuration-to-remove-outer-curly-bracket/m-p/299959#M56739</link>
      <description>&lt;P&gt;Little update here: This is under investigation now&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 22:14:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-configuration-to-remove-outer-curly-bracket/m-p/299959#M56739</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2017-10-19T22:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help with props.conf configuration to remove outer curly bracket before ingesting JSON file to get event ID</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-configuration-to-remove-outer-curly-bracket/m-p/299960#M56740</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I confirmed with an engineer that this option will work in the way it's been depicted here.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 21:51:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-props-conf-configuration-to-remove-outer-curly-bracket/m-p/299960#M56740</guid>
      <dc:creator>malmoore</dc:creator>
      <dc:date>2017-10-23T21:51:22Z</dc:date>
    </item>
  </channel>
</rss>

