<?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 convert multiple spath commands into a single EVAL command? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/How-to-convert-multiple-spath-commands-into-a-single-EVAL/m-p/592862#M11307</link>
    <description>&lt;P&gt;Does anyone know the answer to this please?&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2022 10:04:32 GMT</pubDate>
    <dc:creator>POR160893</dc:creator>
    <dc:date>2022-04-07T10:04:32Z</dc:date>
    <item>
      <title>How to convert multiple spath commands into a single EVAL command?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-convert-multiple-spath-commands-into-a-single-EVAL/m-p/592645#M11304</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I need to convert the following into a single query that uses the EVAL command in order to perform extractions.&lt;BR /&gt;&lt;BR /&gt;I currently have the following:&lt;BR /&gt;index="identitynow" |spath path=action |rename action as authentication_method, index="identitynow" |spath path=name |rename name as authentication_service,index="identitynow" |spath path=message |&lt;BR /&gt;rename message as reason,index="identitynow" |spath path=status |rename status as action,index="identitynow" |spath path=source |rename source as src,index="identitynow" |spath path=source_host |&lt;BR /&gt;rename source_host as src_user_id,index="identitynow" |spath path=apiUsername |rename apiUsername as user&lt;BR /&gt;&lt;BR /&gt;Is it possible to use the spath function with the EVAL command?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you so much for all your help!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 15:30:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-convert-multiple-spath-commands-into-a-single-EVAL/m-p/592645#M11304</guid>
      <dc:creator>POR160893</dc:creator>
      <dc:date>2022-04-06T15:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert multiple spath commands into a single EVAL command?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-convert-multiple-spath-commands-into-a-single-EVAL/m-p/592655#M11305</link>
      <description>&lt;P&gt;You have labelled this question as summary indexing. Perhaps if you could explain what it is that you are trying to achieve, we might be able to find a way to do it.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 15:16:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-convert-multiple-spath-commands-into-a-single-EVAL/m-p/592655#M11305</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-07T15:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convert multiple spath commands into a single EVAL command</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-convert-multiple-spath-commands-into-a-single-EVAL/m-p/592660#M11306</link>
      <description>&lt;P&gt;Basically, I have an index and some of the fields are in JSON format. I need to extract them and make individual fields for them.&lt;BR /&gt;&lt;BR /&gt;Spath was the only way I could access the values in JSON format and turn them into fields. I am unable to add the Spath into the props.conf - only extraction, field alias and eval.&lt;BR /&gt;&lt;BR /&gt;Can you please help?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 11:45:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-convert-multiple-spath-commands-into-a-single-EVAL/m-p/592660#M11306</guid>
      <dc:creator>POR160893</dc:creator>
      <dc:date>2022-04-06T11:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert multiple spath commands into a single EVAL command?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-convert-multiple-spath-commands-into-a-single-EVAL/m-p/592862#M11307</link>
      <description>&lt;P&gt;Does anyone know the answer to this please?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 10:04:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-convert-multiple-spath-commands-into-a-single-EVAL/m-p/592862#M11307</guid>
      <dc:creator>POR160893</dc:creator>
      <dc:date>2022-04-07T10:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert multiple spath commands into a single EVAL command?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-convert-multiple-spath-commands-into-a-single-EVAL/m-p/592863#M11308</link>
      <description>&lt;P&gt;Does anyone know the answer to this issue please as I need it for CIM compliance?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 10:05:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-convert-multiple-spath-commands-into-a-single-EVAL/m-p/592863#M11308</guid>
      <dc:creator>POR160893</dc:creator>
      <dc:date>2022-04-07T10:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert multiple spath commands into a single EVAL command?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-convert-multiple-spath-commands-into-a-single-EVAL/m-p/592877#M11309</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Basically, I have an index and some of the fields are in JSON format. I need to extract them and make individual fields for them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Spath was the only way I could access the values in JSON format and turn them into fields. I am unable to add the Spath into the props.conf - only extraction, field alias and eval.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please help?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 11:51:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-convert-multiple-spath-commands-into-a-single-EVAL/m-p/592877#M11309</guid>
      <dc:creator>POR160893</dc:creator>
      <dc:date>2022-04-07T11:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert multiple spath commands into a single EVAL command?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-convert-multiple-spath-commands-into-a-single-EVAL/m-p/592937#M11310</link>
      <description>&lt;P&gt;I solved the problem, thanks&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;.....&lt;BR /&gt;| eval authentication_method =spath(_raw,"action")&lt;BR /&gt;| eval authentication_service = spath(_raw,"name")&lt;BR /&gt;| eval reason =spath(_raw,"message")&lt;BR /&gt;| eval action=spath(_raw,"status")&lt;BR /&gt;| eval src=spath(_raw,"source")&lt;BR /&gt;| eval src_user_id = spath(_raw,"source_host")&lt;BR /&gt;| eval user=spath(_raw,"apiUsername")&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 15:10:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-convert-multiple-spath-commands-into-a-single-EVAL/m-p/592937#M11310</guid>
      <dc:creator>POR160893</dc:creator>
      <dc:date>2022-04-07T15:10:31Z</dc:date>
    </item>
  </channel>
</rss>

