<?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: Extract Json data in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Extract-Json-data/m-p/100055#M20902</link>
    <description>&lt;P&gt;i think i have not posted my question clearly..&lt;/P&gt;

&lt;P&gt;inputlookup techtable| where technology= OS | fields fields would give the result of the fields i would want to use in my second query&lt;/P&gt;

&lt;P&gt;my second query is&lt;BR /&gt;
index=equivalency sourcetype=json | spath | stats list(*) as *| transpose&lt;BR /&gt;
which would result all the fields in the JSON.&lt;/P&gt;

&lt;P&gt;i want to pass the fields from the first query to the second query to filter the JSON data.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Nov 2013 19:12:19 GMT</pubDate>
    <dc:creator>spyme72</dc:creator>
    <dc:date>2013-11-11T19:12:19Z</dc:date>
    <item>
      <title>Extract Json data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-Json-data/m-p/100053#M20900</link>
      <description>&lt;P&gt;i want to extract all the attributes in the following Json string and use it to populate a dropdown.&lt;/P&gt;

&lt;P&gt;This is the first time i am working with Json string hence confused on how to use spath to extract all the attributes. i would have used rex if it was a string, please help.&lt;/P&gt;

&lt;P&gt;{[-]&lt;BR /&gt;
  DIR_CLIENT_ORAHOME : "/oracle/C08/920_64",&lt;BR /&gt;
  DIR_CT_RUN : "/usr/sap/C08/SYS/exe/run",&lt;BR /&gt;
  DIR_EXECUTABLE : "/usr/sap/C08/DVEBMGS15/exe",&lt;BR /&gt;
  DIR_ORAHOME : "/oracle/C08/920_64",&lt;BR /&gt;
  DIR_PUT : "/usr/sap/SUM/abap",&lt;BR /&gt;
  DIR_SERVER_ORAHOME : "/oracle/C08/920_64",&lt;BR /&gt;
  INSTANCE_NAME : "DVEBMGS15",&lt;BR /&gt;
  OS_UNICODE : "uc",&lt;BR /&gt;
  PHYS_MEMSIZE : "16384",&lt;BR /&gt;
  SAPDBHOST : "stluc08cnb01",&lt;BR /&gt;
  SAPGLOBALHOST : "stc08a00",&lt;BR /&gt;
  SAPSYSTEM : "15",&lt;BR /&gt;
  SAPSYSTEMNAME : "C08",&lt;BR /&gt;
  abap/atrasizequota : "50000",&lt;BR /&gt;
  abap/buffersize : "3148000",&lt;BR /&gt;
  abap/fieldexit : "yes",&lt;BR /&gt;
  abap/heap_area_dia : "3000000000",&lt;BR /&gt;
  abap/heap_area_nondia : "5368709120",&lt;BR /&gt;
  abap/heap_area_total : "10737418240",&lt;BR /&gt;
  abap/heaplimit : "50000000",&lt;BR /&gt;
  abap/shared_objects_size_MB : "25",&lt;BR /&gt;
  alert/MONI_SEGM_SIZE : "80000000",&lt;BR /&gt;
  auth/auth_number_in_userbuffer : "9000",&lt;BR /&gt;
  auth/no_check_in_some_cases : "Y",&lt;BR /&gt;
  auth/object_disabling_active : "N",&lt;BR /&gt;
  auth/tcodes_not_checked : "null",&lt;BR /&gt;
  csa/second_language : "E",&lt;BR /&gt;
  dbms/type : "ora",&lt;BR /&gt;
  dbs/ora/plan_table : "UH",&lt;BR /&gt;
  dbs/ora/tnsname : "c08-scan/stc08a00_C08_15",&lt;BR /&gt;
  em/global_area_MB : "2048",&lt;BR /&gt;
  em/initial_size_MB : "14336",&lt;BR /&gt;
  em/max_size_MB : "24576",&lt;BR /&gt;
  enque/table_size : "65536",&lt;BR /&gt;
  es/implementation : "std",&lt;BR /&gt;
  exe/icmbnd : "$(DIR_CT_RUN)/icmbnd",&lt;BR /&gt;
  gw/cpic_timeout : "40",&lt;BR /&gt;
  gw/max_conn : "2000",&lt;BR /&gt;
  gw/max_conn_per_wp : "20",&lt;BR /&gt;
  gw/max_overflow_size : "25000000",&lt;BR /&gt;
  gw/max_sys : "2000",&lt;BR /&gt;
  icm/HTTP/logging_0 : "PREFIX=/, LOGFILE=icmhttp.log, LOGFORMAT=SAPSMD, MAXSIZEKB=10240, SWITCHTF=day, FILEWRAP=on",&lt;BR /&gt;
  icm/host_name_full : "stc08a00.monsanto.com",&lt;BR /&gt;
  icm/keep_alive_timeout : "90",&lt;BR /&gt;
  icm/max_conn : "16384",&lt;BR /&gt;
  icm/max_sockets : "16384",&lt;BR /&gt;
  icm/max_threads : "250",&lt;BR /&gt;
  icm/min_threads : "100",&lt;BR /&gt;
  icm/req_queue_len : "6000",&lt;BR /&gt;
  icm/server_port_0 : "PROT=HTTPS,PORT=80$$",&lt;BR /&gt;
  icm/server_port_1 : "PROT=SMTP,PORT=0,PROCTIMEOUT=1200,TIMEOUT=60",&lt;BR /&gt;
  install/umask : "002",&lt;BR /&gt;
  ipc/shm_psize_10 : "224000000",&lt;BR /&gt;
  ipc/shm_psize_40 : "734000000",&lt;BR /&gt;
  itsp/Security/allow_designs_from : "myhost,stcepa00.monsanto.com,cep.monsanto.com",&lt;BR /&gt;
  login/accept_sso2_ticket : "1",&lt;BR /&gt;
  login/create_sso2_ticket : "1",&lt;BR /&gt;
  login/failed_user_auto_unlock : "0",&lt;BR /&gt;
  login/fails_to_session_end : "3",&lt;BR /&gt;
  login/fails_to_user_lock : "6",&lt;BR /&gt;
  login/min_password_digits : "1",&lt;BR /&gt;
  login/min_password_letters : "1",&lt;BR /&gt;
  login/min_password_lng : "6",&lt;BR /&gt;
  login/min_password_specials : "1",&lt;BR /&gt;
  login/no_automatic_user_sapstar : "1",&lt;BR /&gt;
  login/password_expiration_time : "90",&lt;BR /&gt;
  login/password_history_size : "1",&lt;BR /&gt;
  login/system_client : "208",&lt;BR /&gt;
  mpi/total_size_MB : "500",&lt;BR /&gt;
  ms/acl_info : "/usr/sap/C08/SYS/global/ms_acl_info",&lt;BR /&gt;
  nobuf/max_no_buffer_entries : "2000",&lt;BR /&gt;
  rdisp/PG_MAXFS : "491520",&lt;BR /&gt;
  rdisp/PG_SHM : "98304",&lt;BR /&gt;
  rdisp/ROLL_MAXFS : "163840",&lt;BR /&gt;
  rdisp/ROLL_SHM : "32768",&lt;BR /&gt;
  rdisp/accept_remote_trace_level : "0",&lt;BR /&gt;
  rdisp/appc_ca_blk_no : "3000",&lt;BR /&gt;
  rdisp/btcname : "stc08a00_C08_15",&lt;BR /&gt;
  rdisp/btctime : "20",&lt;BR /&gt;
  rdisp/bufrefmode : "sendon,exeauto",&lt;BR /&gt;
  rdisp/elem_per_queue : "4000",&lt;BR /&gt;
  rdisp/enqname : "stc08a00_C08_15",&lt;BR /&gt;
  rdisp/gui_auto_logout : "1800",&lt;BR /&gt;
  rdisp/max_arq : "2500",&lt;BR /&gt;
  rdisp/max_comm_entries : "2500",&lt;BR /&gt;
  rdisp/max_wprun_time : "1800",&lt;BR /&gt;
  rdisp/mshost : "stc08a00",&lt;BR /&gt;
  rdisp/msserv_internal : "3915",&lt;BR /&gt;
  rdisp/plugin_auto_logout : "900",&lt;BR /&gt;
  rdisp/rfc_check : "3",&lt;BR /&gt;
  rdisp/rfc_max_own_used_wp : "25",&lt;BR /&gt;
  rdisp/rfc_min_wait_dia_wp : "10",&lt;BR /&gt;
  rdisp/sna_gateway : "stc08a00",&lt;BR /&gt;
  rdisp/sna_gw_service : "sapgw15",&lt;BR /&gt;
  rdisp/tm_max_no : "2000",&lt;BR /&gt;
  rdisp/vbname : "stc08a00_C08_15",&lt;BR /&gt;
  rdisp/wp_ca_blk_no : "2000",&lt;BR /&gt;
  rdisp/wp_no_btc : "6",&lt;BR /&gt;
  rdisp/wp_no_dia : "30",&lt;BR /&gt;
  rdisp/wp_no_enq : "1",&lt;BR /&gt;
  rdisp/wp_no_spo : "1",&lt;BR /&gt;
  rdisp/wp_no_vb : "4",&lt;BR /&gt;
  rdisp/wp_no_vb2 : "4",&lt;BR /&gt;
  rsau/enable : "1",&lt;BR /&gt;
  rsau/selection_slots : "10",&lt;BR /&gt;
  rsdb/cua/buffersize : "240000",&lt;BR /&gt;
  rsdb/max_blocking_factor : "20",&lt;BR /&gt;
  rsdb/max_in_blocking_factor : "20",&lt;BR /&gt;
  rsdb/max_union_blocking_factor : "20",&lt;BR /&gt;
  rsdb/ntab/entrycount : "150000",&lt;BR /&gt;
  rsdb/ntab/ftabsize : "240000",&lt;BR /&gt;
  rsdb/ntab/irbdsize : "80000",&lt;BR /&gt;
  rsdb/ntab/sntabsize : "3500",&lt;BR /&gt;
  rsdb/obj/buffersize : "450000",&lt;BR /&gt;
  rsdb/obj/max_objects : "55000",&lt;BR /&gt;
  rsdb/prefer_fix_blocking : "1",&lt;BR /&gt;
  rsdb/ssfs_connect : "1",&lt;BR /&gt;
  rsec/ssfs_datapath : "$(DIR_GLOBAL)$(DIR_SEP)security$(DIR_SEP)rsecssfs$(DIR_SEP)data",&lt;BR /&gt;
  rsec/ssfs_keypath : "$(DIR_GLOBAL)$(DIR_SEP)security$(DIR_SEP)rsecssfs$(DIR_SEP)key",&lt;BR /&gt;
  rslg/max_diskspace/central : "5000000",&lt;BR /&gt;
  rslg/send_daemon/listen_port : "1215",&lt;BR /&gt;
  rslg/send_daemon/talk_port : "1315",&lt;BR /&gt;
  rspo/global_shm/printer_list : "4500",&lt;BR /&gt;
  rspo/spool_id/max_number : "200000",&lt;BR /&gt;
  rtbb/buffer_length : "80000",&lt;BR /&gt;
  rtbb/max_tables : "500",&lt;BR /&gt;
  sap/bufdir_entries : "10000",&lt;BR /&gt;
  sapgui/user_scripting : "TRUE",&lt;BR /&gt;
  sec/libsapsecu : "/sapmnt/C08/exe/libsapcrypto.so",&lt;BR /&gt;
  ssf/name : "SAPSECULIB",&lt;BR /&gt;
  ssf/ssfapi_lib : "/sapmnt/C08/exe/libsapcrypto.so",&lt;BR /&gt;
  ssl/ssl_lib : "/sapmnt/C08/exe/libsapcrypto.so",&lt;BR /&gt;
  system/type : "ABAP",&lt;BR /&gt;
  zcsa/calendar_area : "1020000",&lt;BR /&gt;
  zcsa/calendar_ids : "400",&lt;BR /&gt;
  zcsa/db_max_buftab : "80000",&lt;BR /&gt;
  zcsa/installed_languages : "123CDEFGHIKLNOPQRSTUVWXYa45689쁩",&lt;BR /&gt;
  zcsa/presentation_buffer_area : "70000000",&lt;BR /&gt;
  zcsa/system_language : "E",&lt;BR /&gt;
  zcsa/table_buffer_area : "1500000000",&lt;BR /&gt;
  ztta/dynpro_area : "900000",&lt;BR /&gt;
  ztta/parameter_area : "24000",&lt;BR /&gt;
  ztta/roll_extension : "2000000000"&lt;BR /&gt;
}&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:58:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-Json-data/m-p/100053#M20900</guid>
      <dc:creator>spyme72</dc:creator>
      <dc:date>2020-09-28T14:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Json data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-Json-data/m-p/100054#M20901</link>
      <description>&lt;P&gt;In if its still open, use following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=equivalency sourcetype=json | spath | stats list(*) as * | transpose
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Nov 2013 18:48:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-Json-data/m-p/100054#M20901</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-11-11T18:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Json data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-Json-data/m-p/100055#M20902</link>
      <description>&lt;P&gt;i think i have not posted my question clearly..&lt;/P&gt;

&lt;P&gt;inputlookup techtable| where technology= OS | fields fields would give the result of the fields i would want to use in my second query&lt;/P&gt;

&lt;P&gt;my second query is&lt;BR /&gt;
index=equivalency sourcetype=json | spath | stats list(*) as *| transpose&lt;BR /&gt;
which would result all the fields in the JSON.&lt;/P&gt;

&lt;P&gt;i want to pass the fields from the first query to the second query to filter the JSON data.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2013 19:12:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-Json-data/m-p/100055#M20902</guid>
      <dc:creator>spyme72</dc:creator>
      <dc:date>2013-11-11T19:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Json data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-Json-data/m-p/100056#M20903</link>
      <description>&lt;P&gt;i think i have not posted my question clearly..&lt;/P&gt;

&lt;P&gt;inputlookup techtable| where technology= OS | fields fields would give the result of the fields i would want to use in my second query&lt;/P&gt;

&lt;P&gt;my second query is&lt;BR /&gt;
index=equivalency sourcetype=json | spath | stats list(*) as *| transpose&lt;BR /&gt;
which would result all the fields in the JSON.&lt;/P&gt;

&lt;P&gt;i want to pass the fields from the first query to the second query to filter the JSON data.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2013 19:12:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-Json-data/m-p/100056#M20903</guid>
      <dc:creator>spyme72</dc:creator>
      <dc:date>2013-11-11T19:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Json data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-Json-data/m-p/100057#M20904</link>
      <description>&lt;P&gt;You can use following (assuming ,as per ur comment, first search give a column 'fields' which have values, name of fields, your want to display/use in second query)&lt;/P&gt;

&lt;P&gt;inputlookup techtable| where technology= OS | fields fields|join fields[search index=equivalency sourcetype=json | spath | stats list() as *| transpose |rename column as fields] &lt;/P&gt;

&lt;P&gt;This should give your output as  'fields'- contains only the fields present in your lookup, 'row 1' - values for those fields.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2013 19:51:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-Json-data/m-p/100057#M20904</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-11-11T19:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Json data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-Json-data/m-p/100058#M20905</link>
      <description>&lt;P&gt;i think i have not posted my question clearly..&lt;BR /&gt;
inputlookup techtable| where technology= OS | fields fields would give the result of the fields i would want to use in my second query&lt;BR /&gt;
my second query is&lt;BR /&gt;
index=equivalency sourcetype=json | spath | stats list() as | transpose&lt;BR /&gt;
which would result all the fields in the JSON.&lt;BR /&gt;
i want to pass the fields from the first query to the second query to filter the JSON data.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2013 19:55:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-Json-data/m-p/100058#M20905</guid>
      <dc:creator>spyme72</dc:creator>
      <dc:date>2013-11-11T19:55:57Z</dc:date>
    </item>
  </channel>
</rss>

