<?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 How to extract json from event with = separated values? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-json-from-event-with-separated-values/m-p/617425#M106603</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello, I have the following type of event, and I would like to extract the `tags` field into its respective fields.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;2022-10-17 06:50:00.997, root_device_name="/dev/sda1", root_device_type="ebs",  state_name="running", subnet_id="subnet-REDACTED", tags="{"App": "myapp", "Name": "myserver", "Owner": "myteam", "Scope": "myscope", "AWSBackup": "True", "Environment": "myenv", "Compliance requirement": "N/A"}", virtualization_type="hvm",  vpc_id="vpc-REDACTED"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;BR /&gt;I have tried the following which did not work for me:&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=myindex sourcetype=mysourcetype earliest=@d i-REDACTED source=awsec2instances
| spath input=tags &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;How do I extract these JSON fields from an event like this?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2022 21:35:52 GMT</pubDate>
    <dc:creator>zachsisinst</dc:creator>
    <dc:date>2022-10-17T21:35:52Z</dc:date>
    <item>
      <title>How to extract json from event with = separated values?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-json-from-event-with-separated-values/m-p/617425#M106603</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello, I have the following type of event, and I would like to extract the `tags` field into its respective fields.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;2022-10-17 06:50:00.997, root_device_name="/dev/sda1", root_device_type="ebs",  state_name="running", subnet_id="subnet-REDACTED", tags="{"App": "myapp", "Name": "myserver", "Owner": "myteam", "Scope": "myscope", "AWSBackup": "True", "Environment": "myenv", "Compliance requirement": "N/A"}", virtualization_type="hvm",  vpc_id="vpc-REDACTED"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;BR /&gt;I have tried the following which did not work for me:&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=myindex sourcetype=mysourcetype earliest=@d i-REDACTED source=awsec2instances
| spath input=tags &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;How do I extract these JSON fields from an event like this?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 21:35:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-json-from-event-with-separated-values/m-p/617425#M106603</guid>
      <dc:creator>zachsisinst</dc:creator>
      <dc:date>2022-10-17T21:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract json from event with = separated values?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-json-from-event-with-separated-values/m-p/617435#M106605</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "tags=\"(?&amp;lt;tags&amp;gt;\{[^\}]+\})"
| spath input=tags&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 17 Oct 2022 22:04:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-json-from-event-with-separated-values/m-p/617435#M106605</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-10-17T22:04:12Z</dc:date>
    </item>
  </channel>
</rss>

