<?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 use spath command in props.conf or transforms.conf in Splunk? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-spath-command-in-props-conf-or-transforms-conf-in/m-p/410986#M72774</link>
    <description>&lt;P&gt;ok I will try .thank you&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jun 2018 12:35:28 GMT</pubDate>
    <dc:creator>MAMAOUI</dc:creator>
    <dc:date>2018-06-29T12:35:28Z</dc:date>
    <item>
      <title>How to use spath command in props.conf or transforms.conf in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-spath-command-in-props-conf-or-transforms-conf-in/m-p/410982#M72770</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;

&lt;P&gt;I used spath command to extract field from json data:&lt;/P&gt;

&lt;P&gt;{"key":"value", "key":"value", "key":"value", "key":"value", "key":"value" ...}&lt;/P&gt;

&lt;P&gt;and I got the results that I wanted (.. | spath input = json)&lt;/P&gt;

&lt;P&gt;My question is how can I get the same results in props.conf or transforms.conf?&lt;/P&gt;

&lt;P&gt;Thank you for answer&lt;/P&gt;

&lt;P&gt;M&amp;amp;A&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 07:55:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-spath-command-in-props-conf-or-transforms-conf-in/m-p/410982#M72770</guid>
      <dc:creator>MAMAOUI</dc:creator>
      <dc:date>2018-06-27T07:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to use spath command in props.conf or transforms.conf in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-spath-command-in-props-conf-or-transforms-conf-in/m-p/410983#M72771</link>
      <description>&lt;P&gt;Use &lt;CODE&gt;INDEXED_EXTRACTIONS = JSON&lt;/CODE&gt; in props.conf.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 13:22:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-spath-command-in-props-conf-or-transforms-conf-in/m-p/410983#M72771</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-06-27T13:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use spath command in props.conf or transforms.conf in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-spath-command-in-props-conf-or-transforms-conf-in/m-p/410984#M72772</link>
      <description>&lt;P&gt;I used  KV_MODE=JSON and it works but my probleme is that i have 2 json&lt;BR /&gt;
format in the same data :&lt;/P&gt;

&lt;P&gt;{"key1":"value1", "key2":"value2", "key3": "{\"key30\":values30,\"key31\":values31........ \"}"}&lt;/P&gt;

&lt;P&gt;I dont know if there are any way to use spath in props , some thig like &lt;BR /&gt;
Eval-Key3=spath ....&lt;/P&gt;

&lt;P&gt;Thankyou&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 08:54:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-spath-command-in-props-conf-or-transforms-conf-in/m-p/410984#M72772</guid>
      <dc:creator>MAMAOUI</dc:creator>
      <dc:date>2018-06-28T08:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to use spath command in props.conf or transforms.conf in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-spath-command-in-props-conf-or-transforms-conf-in/m-p/410985#M72773</link>
      <description>&lt;P&gt;Nope, that will not work. But you can use any kind of regex as transforms to get around this JSON in JSON problem. See this answer &lt;A href="https://answers.splunk.com/answers/319646/how-to-write-the-regex-to-extract-data-inside-squa.html"&gt;https://answers.splunk.com/answers/319646/how-to-write-the-regex-to-extract-data-inside-squa.html&lt;/A&gt; to learn how it can be done.&lt;/P&gt;

&lt;P&gt;Additional hint: the regex mentioned in this answer will not work for your JSON in JSON thing ... try &lt;CODE&gt;\\"([^\\]+)\\":([^,]+)&lt;/CODE&gt; for a start &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>Thu, 28 Jun 2018 09:00:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-spath-command-in-props-conf-or-transforms-conf-in/m-p/410985#M72773</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-06-28T09:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to use spath command in props.conf or transforms.conf in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-spath-command-in-props-conf-or-transforms-conf-in/m-p/410986#M72774</link>
      <description>&lt;P&gt;ok I will try .thank you&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 12:35:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-spath-command-in-props-conf-or-transforms-conf-in/m-p/410986#M72774</guid>
      <dc:creator>MAMAOUI</dc:creator>
      <dc:date>2018-06-29T12:35:28Z</dc:date>
    </item>
  </channel>
</rss>

