<?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: Not able to parse json with spath ,something wrong but not json in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-parse-json-with-spath-something-wrong-but-not-json/m-p/712510#M117682</link>
    <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| spath properties
| spath input=properties attributes&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 25 Feb 2025 17:41:26 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2025-02-25T17:41:26Z</dc:date>
    <item>
      <title>Not able to parse json with spath ,something wrong but not json</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-parse-json-with-spath-something-wrong-but-not-json/m-p/712508#M117681</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to ingest some logs into splunk, so file&amp;amp;dirs data input its my choice.&lt;/P&gt;&lt;P&gt;Also new index was created , _json as sourcetype. Now im trying to use spath in search to parse JSON data with multifields and no luck yet. Just checked my json file - valid json.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ekmek4_0-1740504817781.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/34702iDCE8B85C282F1D55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ekmek4_0-1740504817781.png" alt="ekmek4_0-1740504817781.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here we have some parsed json, but i want to get email, first_name,last_name from properties.attributes to be able parse or filter by any of this fields in future&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any help.&lt;/P&gt;&lt;P&gt;Small source file:&lt;/P&gt;&lt;P&gt;&lt;A href="https://paste2.org/OsEXkgbJ" target="_blank" rel="noopener"&gt;https://paste2.org/OsEXkgbJ&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what i tried :&lt;/P&gt;&lt;P&gt;index=ep_log event=created | spath properties.attributes&lt;/P&gt;&lt;P&gt;index=erp_log event=created | spath properties and so on&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 17:37:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-parse-json-with-spath-something-wrong-but-not-json/m-p/712508#M117681</guid>
      <dc:creator>ekmek4</dc:creator>
      <dc:date>2025-02-25T17:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to parse json with spath ,something wrong but not json</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-parse-json-with-spath-something-wrong-but-not-json/m-p/712510#M117682</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| spath properties
| spath input=properties attributes&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 25 Feb 2025 17:41:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-parse-json-with-spath-something-wrong-but-not-json/m-p/712510#M117682</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-02-25T17:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to parse json with spath ,something wrong but not json</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-parse-json-with-spath-something-wrong-but-not-json/m-p/712519#M117684</link>
      <description>&lt;P&gt;Now i have a new field "attributes"&lt;/P&gt;&lt;P&gt;attributes:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;{"email": "gacilia@gmail.com", "clients": {"ERP Frontend": "GEgzvJrIJxxHNS9FVdSvUej5wyrBgd2sSHH7RLuE", "Frontend CRM": "ILrkYrSCSsKgdgxBRv0COxKLaOzKufXogzWEAoh8"}, "is_active": false, "last_name": "Gac", "legacy_id": "66f510fea8f5e1ff130f5fa0", "first_name": "Ilia", "start_date": null, "is_team_supervisor": true, "two_factor_auth_enabled": false}&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 18:33:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-parse-json-with-spath-something-wrong-but-not-json/m-p/712519#M117684</guid>
      <dc:creator>ekmek4</dc:creator>
      <dc:date>2025-02-25T18:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to parse json with spath ,something wrong but not json</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-parse-json-with-spath-something-wrong-but-not-json/m-p/712524#M117686</link>
      <description>&lt;P&gt;index=ep_log event=created | spath path=properties | mvexpand properties | spath input=properties&lt;/P&gt;&lt;P&gt;This query automatically expand fields with every attribute key.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 20:44:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-parse-json-with-spath-something-wrong-but-not-json/m-p/712524#M117686</guid>
      <dc:creator>ekmek4</dc:creator>
      <dc:date>2025-02-25T20:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to parse json with spath ,something wrong but not json</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-parse-json-with-spath-something-wrong-but-not-json/m-p/712546#M117690</link>
      <description>&lt;P&gt;Does this give you what you want?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| spath properties
| spath input=properties attributes
| spath input=attributes&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 25 Feb 2025 22:53:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-parse-json-with-spath-something-wrong-but-not-json/m-p/712546#M117690</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-02-25T22:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to parse json with spath ,something wrong but not json</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-parse-json-with-spath-something-wrong-but-not-json/m-p/712586#M117699</link>
      <description>&lt;LI-CODE lang="php"&gt;| spath path=properties | mvexpand properties | spath input=properties&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this works fine for me. Thank you!!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 11:08:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-parse-json-with-spath-something-wrong-but-not-json/m-p/712586#M117699</guid>
      <dc:creator>ekmek4</dc:creator>
      <dc:date>2025-02-26T11:08:04Z</dc:date>
    </item>
  </channel>
</rss>

