<?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 Extract JSON data using transforms in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-using-transforms/m-p/696702#M236774</link>
    <description>&lt;P&gt;Here is my sample log&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2024-07-08T04:43:32.468537+00:00 dxx1-dbxxxs.xxx.net MSSQLSERVER[0] {"EventTime":"2024-07-08 04:43:32","Hostname":"dx1-dbxxxs.xxx.net","Keywords":45035996273704960,"EventType":"AUDIT_SUCCESS","SeverityValue":2,"Severity":"INFO","EventID":44444,"SourceName":"MSSQLSERVER","Task":5,"RecordNumber":1234343410,"ProcessID":0,"ThreadID":0,"Channel":"Application","Message":"Audit event:lkjfd:sdfkjhf:Askjhdfsdf","Category":"None","EventReceivedTime":"2024-07-08 04:43:32","SourceModuleName":"default-inputs","SourceModuleType":"im_msvistalog"}#015&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;U&gt;Here is my config&lt;/U&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[dbtest:test] #mysourcetype&lt;BR /&gt;&lt;SPAN&gt;TRANSFORMS-&lt;/SPAN&gt;&lt;SPAN&gt;extract_kv_pairs&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;extract_json_data&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[extract_json_data]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;REGEX&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"(\w+)"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"?([^"&lt;/SPAN&gt;&lt;SPAN&gt;,}]+)&lt;/SPAN&gt;&lt;SPAN&gt;"?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FORMAT&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;$&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;::$&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WRITE_META&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;The same Regex is working in Regex101 here is the test link&amp;nbsp;&lt;A href="https://regex101.com/r/rt3bly/1" target="_blank" rel="noopener"&gt;https://regex101.com/r/rt3bly/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am not sure why its not working in my log extraction.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any help is highly appreciated. Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2024 11:38:48 GMT</pubDate>
    <dc:creator>karthikm</dc:creator>
    <dc:date>2024-08-19T11:38:48Z</dc:date>
    <item>
      <title>Extract JSON data using transforms</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-using-transforms/m-p/696702#M236774</link>
      <description>&lt;P&gt;Here is my sample log&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2024-07-08T04:43:32.468537+00:00 dxx1-dbxxxs.xxx.net MSSQLSERVER[0] {"EventTime":"2024-07-08 04:43:32","Hostname":"dx1-dbxxxs.xxx.net","Keywords":45035996273704960,"EventType":"AUDIT_SUCCESS","SeverityValue":2,"Severity":"INFO","EventID":44444,"SourceName":"MSSQLSERVER","Task":5,"RecordNumber":1234343410,"ProcessID":0,"ThreadID":0,"Channel":"Application","Message":"Audit event:lkjfd:sdfkjhf:Askjhdfsdf","Category":"None","EventReceivedTime":"2024-07-08 04:43:32","SourceModuleName":"default-inputs","SourceModuleType":"im_msvistalog"}#015&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;U&gt;Here is my config&lt;/U&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[dbtest:test] #mysourcetype&lt;BR /&gt;&lt;SPAN&gt;TRANSFORMS-&lt;/SPAN&gt;&lt;SPAN&gt;extract_kv_pairs&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;extract_json_data&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[extract_json_data]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;REGEX&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"(\w+)"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"?([^"&lt;/SPAN&gt;&lt;SPAN&gt;,}]+)&lt;/SPAN&gt;&lt;SPAN&gt;"?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FORMAT&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;$&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;::$&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WRITE_META&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;The same Regex is working in Regex101 here is the test link&amp;nbsp;&lt;A href="https://regex101.com/r/rt3bly/1" target="_blank" rel="noopener"&gt;https://regex101.com/r/rt3bly/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am not sure why its not working in my log extraction.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any help is highly appreciated. Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 11:38:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-using-transforms/m-p/696702#M236774</guid>
      <dc:creator>karthikm</dc:creator>
      <dc:date>2024-08-19T11:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Extract JSON data using transforms</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-using-transforms/m-p/696707#M236775</link>
      <description>&lt;P&gt;In what way is it "not working"? Are you getting some of the fields, none of the fields, it is only working for some of the events, it is not working for only some sort of data? Do you need to escape the double quotes in the regex?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 11:55:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-using-transforms/m-p/696707#M236775</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-08-19T11:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Extract JSON data using transforms</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-using-transforms/m-p/696709#M236777</link>
      <description>&lt;P&gt;I don't see any fields extracted under in the search head.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This config is placed in the heavy forwarder in the same app where the input is mentioned.&lt;/P&gt;&lt;P&gt;Even in the search head Extract Fields tester the Regex just gives a check mark for all the events saying its a valid regex but doesn't display any Events. Assuming $1::$2 will be used to assign the field name and field value.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 12:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-data-using-transforms/m-p/696709#M236777</guid>
      <dc:creator>karthikm</dc:creator>
      <dc:date>2024-08-19T12:11:04Z</dc:date>
    </item>
  </channel>
</rss>

