<?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 does splunk split field contents in dictionary format? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-does-splunk-split-field-contents-in-dictionary-format/m-p/625998#M217590</link>
    <description>&lt;P&gt;Your log looks pretty standard and fields can be parsed into name/value pairs with the extract command. Then, your info field looks a bit like JSON only you have single quotes instead of double quotes. Your can switch these with the replace function, Then you can parse the (now correct) JSON field with the spath command&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| extract
| eval info=replace(info,"'","\"")
| spath input=info&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 05 Jan 2023 13:05:43 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-01-05T13:05:43Z</dc:date>
    <item>
      <title>How does splunk split field contents in dictionary format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-does-splunk-split-field-contents-in-dictionary-format/m-p/625997#M217589</link>
      <description>&lt;P&gt;current splunk log:&lt;/P&gt;&lt;PRE&gt;user=a,ip=b,info={'gender':1,'Country':2},p=1,&lt;/PRE&gt;&lt;P&gt;target splunk table:&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;user=a,ip=b,gender=1,Country=2,p=1,&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 12:58:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-does-splunk-split-field-contents-in-dictionary-format/m-p/625997#M217589</guid>
      <dc:creator>Cathy</dc:creator>
      <dc:date>2023-01-05T12:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: How does splunk split field contents in dictionary format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-does-splunk-split-field-contents-in-dictionary-format/m-p/625998#M217590</link>
      <description>&lt;P&gt;Your log looks pretty standard and fields can be parsed into name/value pairs with the extract command. Then, your info field looks a bit like JSON only you have single quotes instead of double quotes. Your can switch these with the replace function, Then you can parse the (now correct) JSON field with the spath command&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| extract
| eval info=replace(info,"'","\"")
| spath input=info&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 Jan 2023 13:05:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-does-splunk-split-field-contents-in-dictionary-format/m-p/625998#M217590</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-01-05T13:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: How does splunk split field contents in dictionary format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-does-splunk-split-field-contents-in-dictionary-format/m-p/626021#M217592</link>
      <description>Thank you for your answer. It works!</description>
      <pubDate>Thu, 05 Jan 2023 15:37:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-does-splunk-split-field-contents-in-dictionary-format/m-p/626021#M217592</guid>
      <dc:creator>Cathy</dc:creator>
      <dc:date>2023-01-05T15:37:52Z</dc:date>
    </item>
  </channel>
</rss>

