<?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 extract multiple values for multiple fields within a single event? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-for-multiple-fields-within-a/m-p/513059#M143945</link>
    <description>&lt;P&gt;Hello Spitchika&lt;/P&gt;&lt;P&gt;thanks so much for your help.&lt;/P&gt;&lt;P&gt;I tried your suggestion but I get the same results I posted before.&lt;/P&gt;&lt;P&gt;so here is what I have now&lt;/P&gt;&lt;P&gt;search I am using now which is applying your suggestions, please advise if I formatted it correctly.&lt;/P&gt;&lt;P&gt;sourcetype=syslog_nsxedge host="NSX-Edge03-0" server!="NULL"&lt;BR /&gt;| rex field=_raw max_match=0 "message\":\"(?&amp;lt;TotalMessage&amp;gt;[^\"]+)"&lt;BR /&gt;|sort - _time&lt;BR /&gt;|fieldformat _time = strftime(_time, "%b %d, %Y - %H:%M")&lt;BR /&gt;|mvexpand message&lt;BR /&gt;|table _time,server,site,message&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the resulting table from the search above&lt;/P&gt;&lt;P&gt;Aug 07, 2020 - 05:28&amp;nbsp; &amp;nbsp; &amp;nbsp; Server69 &amp;nbsp; &amp;nbsp; Carson_MDCM_Servers &amp;nbsp; &amp;nbsp; A Loadbalancer Server Status is changed to DOWN&lt;BR /&gt;Aug 07, 2020 - 03:01&amp;nbsp; &amp;nbsp; &amp;nbsp; Server69 &amp;nbsp; &amp;nbsp; Carson_MDCM_Servers &amp;nbsp; &amp;nbsp; A Loadbalancer Server Status is changed to DOWN&lt;BR /&gt;Aug 07, 2020 - 02:46&amp;nbsp; &amp;nbsp; &amp;nbsp; Server62 &amp;nbsp; &amp;nbsp; WT_MDCM_Servers &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A Loadbalancer Server Status is changed to DOWN&lt;BR /&gt;Aug 07, 2020 - 01:51 &amp;nbsp; &amp;nbsp; Server69 &amp;nbsp; &amp;nbsp; Carson_MDCM_Servers &amp;nbsp; &amp;nbsp; A Loadbalancer Server Status is changed to UP&lt;BR /&gt;Aug 07, 2020 - 01:50 &amp;nbsp; &amp;nbsp; Server69 &amp;nbsp; &amp;nbsp; Carson_MDCM_Servers &amp;nbsp; &amp;nbsp; A Loadbalancer Server Status is changed to DOWN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ACTUAL Logs indicate the events for this search time period should are missing the following events&lt;/P&gt;&lt;P&gt;Aug 7 02:46:12 should show the following additional event&lt;/P&gt;&lt;P&gt;Server62 &amp;nbsp; &amp;nbsp; WT_MDCM_Servers &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A Loadbalancer Server Status is changed to UP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aug 7 03:01:12 should show the following additional events&lt;/P&gt;&lt;P&gt;Server81&amp;nbsp; &amp;nbsp; &amp;nbsp;WT_MDCM_Servers &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A Loadbalancer Server Status is changed to DOWN&lt;/P&gt;&lt;P&gt;Server81&amp;nbsp; &amp;nbsp; &amp;nbsp;WT_MDCM_Servers &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A Loadbalancer Server Status is changed to UP&lt;/P&gt;&lt;P&gt;Server69 &amp;nbsp; &amp;nbsp; Carson_MDCM_Servers &amp;nbsp; &amp;nbsp; A Loadbalancer Server Status is changed to UP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aug 7 05:28:12 should show the following additional event&lt;/P&gt;&lt;P&gt;Server69 &amp;nbsp; &amp;nbsp; Carson_MDCM_Servers &amp;nbsp; &amp;nbsp; A Loadbalancer Server Status is changed to UP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;actual logs are below&lt;/P&gt;&lt;P&gt;Aug 7 01:50:12 NSX-Edge03-0 MsgMgr[2349]: [MDCM]: payload len:272 data:{"systemEvents":[{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30302", "message":"A Loadbalancer Server Status is changed to DOWN", "timestamp":1596790245, "metaData":{ "listener" : "Carson_MDCM_Servers", "server" : "Server69" } }]}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Aug 7 01:51:12 NSX-Edge03-0 MsgMgr[2349]: [MDCM]: payload len:270 data:{"systemEvents":[{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30301", "message":"A Loadbalancer Server Status is changed to UP", "timestamp":1596790256, "metaData":{ "listener" : "Carson_MDCM_Servers", "server" : "Server69" } }]}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Aug 7 02:46:12 NSX-Edge03-0 MsgMgr[2349]: [MDCM]: payload len:515 data:{"systemEvents":[{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30302", "message":"A Loadbalancer Server Status is changed to DOWN", "timestamp":1596793558, "metaData":{ "listener" : "WT_MDCM_Servers", "server" : "Server62" } },{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30301", "message":"A Loadbalancer Server Status is changed to UP", "timestamp":1596793578, "metaData":{ "listener" : "WT_MDCM_Servers", "server" : "Server62" } }]}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Aug 7 03:01:12 NSX-Edge03-0 MsgMgr[2349]: [MDCM]: payload len:1019 data:{"systemEvents":[{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30302", "message":"A Loadbalancer Server Status is changed to DOWN", "timestamp":1596794458, "metaData":{ "listener" : "Carson_MDCM_Servers", "server" : "Server69" } },{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30302", "message":"A Loadbalancer Server Status is changed to DOWN", "timestamp":1596794458, "metaData":{ "listener" : "WT_MDCM_Servers", "server" : "Server81" } },{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30301", "message":"A Loadbalancer Server Status is changed to UP", "timestamp":1596794468, "metaData":{ "listener" : "WT_MDCM_Servers", "server" : "Server81" } },{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30301", "message":"A Loadbalancer Server Status is changed to UP", "timestamp":1596794478, "metaData":{ "listener" : "Carson_MDCM_Servers", "server" : "Server69" } }]}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Aug 7 05:28:12 NSX-Edge03-0 MsgMgr[2349]: [MDCM]: payload len:523 data:{"systemEvents":[{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30302", "message":"A Loadbalancer Server Status is changed to DOWN", "timestamp":1596803281, "metaData":{ "listener" : "Carson_MDCM_Servers", "server" : "Server69" } },{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30301", "message":"A Loadbalancer Server Status is changed to UP", "timestamp":1596803291, "metaData":{ "listener" : "Carson_MDCM_Servers", "server" : "Server69" } }]}&lt;/P&gt;</description>
    <pubDate>Fri, 07 Aug 2020 17:30:37 GMT</pubDate>
    <dc:creator>cbwillh</dc:creator>
    <dc:date>2020-08-07T17:30:37Z</dc:date>
    <item>
      <title>How to extract multiple values for multiple fields within a single event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-for-multiple-fields-within-a/m-p/513023#M143932</link>
      <description>&lt;P&gt;I have syslogs from our load balancer which has 4 servers on it.&lt;/P&gt;&lt;P&gt;When one of the servers states changes from UP to DOWN or DOWN to UP it is reported in the syslogs as a string value in an event but sometimes a single event from the same time will contain server state changes for multiple servers. OR a single server but BOTH state change to DOWN and state change to UP.&lt;/P&gt;&lt;P&gt;my issue is that no matter what search I use it never accurately picks up every state change for every server from any event that has multiple messages in it.&lt;/P&gt;&lt;P&gt;Below is a sample of one of my events that has more than one state change:&lt;/P&gt;&lt;P&gt;NOTE I want to extract ALL instances of the following message to a single field&lt;/P&gt;&lt;P&gt;A Loadbalancer Server Status is changed to DOWN&lt;/P&gt;&lt;P&gt;AND/OR&lt;/P&gt;&lt;P&gt;A Loadbalancer Server Status is changed to UP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOG EXAMPLE:&lt;/P&gt;&lt;P&gt;Aug 6 03:01:12 NSX-Edge03-0 MsgMgr[2349]: [MDCM]: payload len:770 data:{"systemEvents":[{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30302", "message":"A Loadbalancer Server Status is changed to DOWN", "timestamp":1596708060, "metaData":{ "listener" : "Carson_MDCM_Servers", "server" : "Server69" } },{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30301", "message":"A Loadbalancer Server Status is changed to UP", "timestamp":1596708081, "metaData":{ "listener" : "Carson_MDCM_Servers", "server" : "Server69" } },{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30301", "message":"A Loadbalancer Server Status is changed to UP", "timestamp":1596708082, "metaData":{ "listener" : "WT_MDCM_Servers", "server" : "Server81" } }]}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 15:00:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-for-multiple-fields-within-a/m-p/513023#M143932</guid>
      <dc:creator>cbwillh</dc:creator>
      <dc:date>2020-08-07T15:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple values for multiple fields within a single event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-for-multiple-fields-within-a/m-p/513034#M143935</link>
      <description>&lt;P&gt;Please try this Rex&lt;/P&gt;&lt;P&gt;| rex field=_raw max_match=0 "message\":\"(?&amp;lt;TotalMessage&amp;gt;[^\"]+)"&lt;BR /&gt;| stats values(TotalMessage)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 15:43:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-for-multiple-fields-within-a/m-p/513034#M143935</guid>
      <dc:creator>spitchika</dc:creator>
      <dc:date>2020-08-07T15:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple values for multiple fields within a single event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-for-multiple-fields-within-a/m-p/513045#M143939</link>
      <description>&lt;P&gt;thanks for that spitchika&lt;/P&gt;&lt;P&gt;that works to present the two messages but it only shows them once.&lt;/P&gt;&lt;P&gt;my fault maybe I should have given more details of what I am trying to accomplish.&lt;/P&gt;&lt;P&gt;I have created 3 field extractions with the following field names:&lt;/P&gt;&lt;P&gt;(data I am trying to extract is noted to the right of the field name below)&lt;/P&gt;&lt;P&gt;message (to extract the &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;message&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t h"&gt;: values:&amp;nbsp;&lt;/SPAN&gt;"A Loadbalancer Server Status is changed to DOWN" OR&amp;nbsp;"A Loadbalancer Server Status is changed to UP" entries )&lt;/P&gt;&lt;P&gt;server (to extract the &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;server&lt;/SPAN&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;SPAN class="t"&gt;: values:&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;"Server69")&lt;/P&gt;&lt;P&gt;site (to extract the &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t h"&gt;listener&lt;/SPAN&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&amp;nbsp;&lt;/SPAN&gt;values:&amp;nbsp; "&amp;nbsp;&lt;SPAN class="t"&gt;Carson_MDCM&lt;/SPAN&gt;&lt;SPAN&gt;_&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Servers" OR&amp;nbsp;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t h"&gt;WT_MDCM_Servers&lt;/SPAN&gt;&lt;SPAN&gt;")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;I want a search to display the results in a table showing the time of the event and the values from the server, site and message fields extracted above.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;I am currently using the following search and it does work BUT it is not grabbing every instance of the values listed above. if an event has FOUR instances of the same event with a different site, server and message my search only returns the first instance or sometimes the first two instances but ignores the other two.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;so my search is no accurate as it is not parsing all of the occurrence's&amp;nbsp;from a single event when there are three or more of them in a single event from the same time as in my original example.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;My Search is currently&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;sourcetype=syslog_nsxedge host="NSX-Edge03-0" server!="NULL"&lt;BR /&gt;|sort - _time&lt;BR /&gt;|fieldformat _time = strftime(_time, "%b %d, %Y - %H:%M")&lt;BR /&gt;|table _time,server,site,message&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;the search above returns the following &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;Aug 07, 2020 - 05:28&amp;nbsp; &amp;nbsp; &amp;nbsp; Server69&amp;nbsp; &amp;nbsp; &amp;nbsp; Carson_MDCM_Servers&amp;nbsp; &amp;nbsp; &amp;nbsp; A Loadbalancer Server Status is changed to DOWN&lt;BR /&gt;Aug 07, 2020 - 03:01&amp;nbsp; &amp;nbsp; &amp;nbsp; Server69&amp;nbsp; &amp;nbsp; &amp;nbsp; Carson_MDCM_Servers&amp;nbsp; &amp;nbsp; &amp;nbsp; A Loadbalancer Server Status is changed to DOWN&lt;BR /&gt;Aug 07, 2020 - 02:46&amp;nbsp; &amp;nbsp; &amp;nbsp; Server62&amp;nbsp; &amp;nbsp; &amp;nbsp; WT_MDCM_Servers&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A Loadbalancer Server Status is changed to DOWN&lt;BR /&gt;Aug 07, 2020 - 01:51&amp;nbsp; &amp;nbsp; &amp;nbsp; Server69&amp;nbsp; &amp;nbsp; &amp;nbsp; Carson_MDCM_Servers&amp;nbsp; &amp;nbsp; &amp;nbsp; A Loadbalancer Server Status is changed to UP&lt;BR /&gt;Aug 07, 2020 - 01:50&amp;nbsp; &amp;nbsp; &amp;nbsp; Server69&amp;nbsp; &amp;nbsp; &amp;nbsp; Carson_MDCM_Servers&amp;nbsp; &amp;nbsp; &amp;nbsp; A Loadbalancer Server Status is changed to DOWN&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it looks correct but when compared against the RAW syslog information it is clear that there are missing events not listed in the table&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 16:24:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-for-multiple-fields-within-a/m-p/513045#M143939</guid>
      <dc:creator>cbwillh</dc:creator>
      <dc:date>2020-08-07T16:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple values for multiple fields within a single event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-for-multiple-fields-within-a/m-p/513054#M143943</link>
      <description>&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Before |Table statement, use "| mvexpand message" if you already captured messages using | rex max_match=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 17:09:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-for-multiple-fields-within-a/m-p/513054#M143943</guid>
      <dc:creator>spitchika</dc:creator>
      <dc:date>2020-08-07T17:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple values for multiple fields within a single event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-for-multiple-fields-within-a/m-p/513059#M143945</link>
      <description>&lt;P&gt;Hello Spitchika&lt;/P&gt;&lt;P&gt;thanks so much for your help.&lt;/P&gt;&lt;P&gt;I tried your suggestion but I get the same results I posted before.&lt;/P&gt;&lt;P&gt;so here is what I have now&lt;/P&gt;&lt;P&gt;search I am using now which is applying your suggestions, please advise if I formatted it correctly.&lt;/P&gt;&lt;P&gt;sourcetype=syslog_nsxedge host="NSX-Edge03-0" server!="NULL"&lt;BR /&gt;| rex field=_raw max_match=0 "message\":\"(?&amp;lt;TotalMessage&amp;gt;[^\"]+)"&lt;BR /&gt;|sort - _time&lt;BR /&gt;|fieldformat _time = strftime(_time, "%b %d, %Y - %H:%M")&lt;BR /&gt;|mvexpand message&lt;BR /&gt;|table _time,server,site,message&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the resulting table from the search above&lt;/P&gt;&lt;P&gt;Aug 07, 2020 - 05:28&amp;nbsp; &amp;nbsp; &amp;nbsp; Server69 &amp;nbsp; &amp;nbsp; Carson_MDCM_Servers &amp;nbsp; &amp;nbsp; A Loadbalancer Server Status is changed to DOWN&lt;BR /&gt;Aug 07, 2020 - 03:01&amp;nbsp; &amp;nbsp; &amp;nbsp; Server69 &amp;nbsp; &amp;nbsp; Carson_MDCM_Servers &amp;nbsp; &amp;nbsp; A Loadbalancer Server Status is changed to DOWN&lt;BR /&gt;Aug 07, 2020 - 02:46&amp;nbsp; &amp;nbsp; &amp;nbsp; Server62 &amp;nbsp; &amp;nbsp; WT_MDCM_Servers &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A Loadbalancer Server Status is changed to DOWN&lt;BR /&gt;Aug 07, 2020 - 01:51 &amp;nbsp; &amp;nbsp; Server69 &amp;nbsp; &amp;nbsp; Carson_MDCM_Servers &amp;nbsp; &amp;nbsp; A Loadbalancer Server Status is changed to UP&lt;BR /&gt;Aug 07, 2020 - 01:50 &amp;nbsp; &amp;nbsp; Server69 &amp;nbsp; &amp;nbsp; Carson_MDCM_Servers &amp;nbsp; &amp;nbsp; A Loadbalancer Server Status is changed to DOWN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ACTUAL Logs indicate the events for this search time period should are missing the following events&lt;/P&gt;&lt;P&gt;Aug 7 02:46:12 should show the following additional event&lt;/P&gt;&lt;P&gt;Server62 &amp;nbsp; &amp;nbsp; WT_MDCM_Servers &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A Loadbalancer Server Status is changed to UP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aug 7 03:01:12 should show the following additional events&lt;/P&gt;&lt;P&gt;Server81&amp;nbsp; &amp;nbsp; &amp;nbsp;WT_MDCM_Servers &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A Loadbalancer Server Status is changed to DOWN&lt;/P&gt;&lt;P&gt;Server81&amp;nbsp; &amp;nbsp; &amp;nbsp;WT_MDCM_Servers &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A Loadbalancer Server Status is changed to UP&lt;/P&gt;&lt;P&gt;Server69 &amp;nbsp; &amp;nbsp; Carson_MDCM_Servers &amp;nbsp; &amp;nbsp; A Loadbalancer Server Status is changed to UP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aug 7 05:28:12 should show the following additional event&lt;/P&gt;&lt;P&gt;Server69 &amp;nbsp; &amp;nbsp; Carson_MDCM_Servers &amp;nbsp; &amp;nbsp; A Loadbalancer Server Status is changed to UP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;actual logs are below&lt;/P&gt;&lt;P&gt;Aug 7 01:50:12 NSX-Edge03-0 MsgMgr[2349]: [MDCM]: payload len:272 data:{"systemEvents":[{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30302", "message":"A Loadbalancer Server Status is changed to DOWN", "timestamp":1596790245, "metaData":{ "listener" : "Carson_MDCM_Servers", "server" : "Server69" } }]}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Aug 7 01:51:12 NSX-Edge03-0 MsgMgr[2349]: [MDCM]: payload len:270 data:{"systemEvents":[{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30301", "message":"A Loadbalancer Server Status is changed to UP", "timestamp":1596790256, "metaData":{ "listener" : "Carson_MDCM_Servers", "server" : "Server69" } }]}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Aug 7 02:46:12 NSX-Edge03-0 MsgMgr[2349]: [MDCM]: payload len:515 data:{"systemEvents":[{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30302", "message":"A Loadbalancer Server Status is changed to DOWN", "timestamp":1596793558, "metaData":{ "listener" : "WT_MDCM_Servers", "server" : "Server62" } },{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30301", "message":"A Loadbalancer Server Status is changed to UP", "timestamp":1596793578, "metaData":{ "listener" : "WT_MDCM_Servers", "server" : "Server62" } }]}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Aug 7 03:01:12 NSX-Edge03-0 MsgMgr[2349]: [MDCM]: payload len:1019 data:{"systemEvents":[{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30302", "message":"A Loadbalancer Server Status is changed to DOWN", "timestamp":1596794458, "metaData":{ "listener" : "Carson_MDCM_Servers", "server" : "Server69" } },{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30302", "message":"A Loadbalancer Server Status is changed to DOWN", "timestamp":1596794458, "metaData":{ "listener" : "WT_MDCM_Servers", "server" : "Server81" } },{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30301", "message":"A Loadbalancer Server Status is changed to UP", "timestamp":1596794468, "metaData":{ "listener" : "WT_MDCM_Servers", "server" : "Server81" } },{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30301", "message":"A Loadbalancer Server Status is changed to UP", "timestamp":1596794478, "metaData":{ "listener" : "Carson_MDCM_Servers", "server" : "Server69" } }]}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Aug 7 05:28:12 NSX-Edge03-0 MsgMgr[2349]: [MDCM]: payload len:523 data:{"systemEvents":[{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30302", "message":"A Loadbalancer Server Status is changed to DOWN", "timestamp":1596803281, "metaData":{ "listener" : "Carson_MDCM_Servers", "server" : "Server69" } },{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30301", "message":"A Loadbalancer Server Status is changed to UP", "timestamp":1596803291, "metaData":{ "listener" : "Carson_MDCM_Servers", "server" : "Server69" } }]}&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 17:30:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-for-multiple-fields-within-a/m-p/513059#M143945</guid>
      <dc:creator>cbwillh</dc:creator>
      <dc:date>2020-08-07T17:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple values for multiple fields within a single event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-for-multiple-fields-within-a/m-p/513065#M143948</link>
      <description>&lt;P&gt;Please try this... Your extracted variable is "&lt;SPAN&gt;TotalMessage". So I changed it in your query&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sourcetype=syslog_nsxedge host="NSX-Edge03-0" server!="NULL"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| rex field=_raw max_match=0 "message\":\"(?&amp;lt;TotalMessage&amp;gt;[^\"]+)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;|sort - _time&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;|fieldformat _time = strftime(_time, "%b %d, %Y - %H:%M")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;|mvexpand TotalMessage&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;|table _time,server,site,TotalMessage&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 17:54:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-for-multiple-fields-within-a/m-p/513065#M143948</guid>
      <dc:creator>spitchika</dc:creator>
      <dc:date>2020-08-07T17:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple values for multiple fields within a single event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-for-multiple-fields-within-a/m-p/513071#M143950</link>
      <description>&lt;P&gt;Hello Spitchika&lt;/P&gt;&lt;P&gt;you are AWESOME! it is really close but I still have some pieces not showing accurate data.&lt;/P&gt;&lt;P&gt;to clarify your latest suggested search DOES fix and display ALL of the message values correctly.&lt;/P&gt;&lt;P&gt;So I believe you definitely fixed the issue for that field but I seem to have inaccurate data in the other two that needs sorting out.&lt;/P&gt;&lt;P&gt;unfortunately the server and the site table column data is not matching the correct server or site in the event to the NOW CORRECT message in the new TotalMessage column&lt;/P&gt;&lt;P&gt;NEW SEARCH&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sourcetype=syslog_nsxedge host="NSX-Edge03-0" server!="NULL"&lt;BR /&gt;| rex field=_raw max_match=0 "message\":\"(?&amp;lt;TotalMessage&amp;gt;[^\"]+)"&lt;BR /&gt;|sort - _time&lt;BR /&gt;|fieldformat _time = strftime(_time, "%b %d, %Y - %H:%M")&lt;BR /&gt;|mvexpand TotalMessage&lt;BR /&gt;|table _time,server,site,TotalMessage&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NEW RESULT (highlighted &lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;green&lt;/STRONG&gt; &lt;STRONG&gt;= data correct-matches log&lt;/STRONG&gt;&lt;/FONT&gt;, &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;red&lt;/STRONG&gt; &lt;STRONG&gt;= data does not match log&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Aug 07, 2020 - 05:28 &lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;Server69 &amp;nbsp; Carson_MDCM_Servers&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#00FF00"&gt;A Loadbalancer Server Status is changed to DOWN&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;Aug 07, 2020 - 05:28 &lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;Server69 &amp;nbsp; Carson_MDCM_Servers&lt;/STRONG&gt; &lt;/FONT&gt;&amp;nbsp; &lt;STRONG&gt;&lt;FONT color="#00FF00"&gt;A Loadbalancer Server Status is changed to UP&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;Aug 07, 2020 - 03:01 &lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;Server69 &amp;nbsp; Carson_MDCM_Servers&lt;/STRONG&gt;&lt;/FONT&gt; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;&lt;FONT color="#00FF00"&gt;A Loadbalancer Server Status is changed to DOWN&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF00FF"&gt;BOTH IN RED BELOW (Server69 should be Server81 &amp;amp; Carson MDCM Servers should be WT_MDCM Servers)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;Aug 07, 2020 - 03:01 &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Server69&lt;/FONT&gt; &amp;nbsp; &lt;FONT color="#FF0000"&gt;Carson_MDCM_Servers&lt;/FONT&gt;&lt;/STRONG&gt; &amp;nbsp; &amp;nbsp; &lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;A Loadbalancer Server Status is changed to DOWN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;Aug 07, 2020 - 03:01 &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Server69&lt;/STRONG&gt; &amp;nbsp; &lt;STRONG&gt;Carson_MDCM_Servers&lt;/STRONG&gt;&lt;/FONT&gt; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;&lt;FONT color="#00FF00"&gt;A Loadbalancer Server Status is changed to UP&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;Aug 07, 2020 - 03:01 &lt;STRONG&gt;&lt;FONT color="#00FF00"&gt;Server69&lt;/FONT&gt; &amp;nbsp; &lt;FONT color="#00FF00"&gt;Carson_MDCM_Servers&lt;/FONT&gt;&lt;/STRONG&gt; &amp;nbsp; &amp;nbsp; &lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;A Loadbalancer Server Status is changed to UP&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;Aug 07, 2020 - 02:46 &lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;Server62 &amp;nbsp; WT_MDCM_Servers&lt;/STRONG&gt;&lt;/FONT&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;&lt;FONT color="#00FF00"&gt;A Loadbalancer Server Status is changed to DOWN&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;Aug 07, 2020 - 02:46 &lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;Server62 &amp;nbsp; WT_MDCM_Servers&lt;/STRONG&gt;&lt;/FONT&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;A Loadbalancer Server Status is changed to UP&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;Aug 07, 2020 - 01:51 &lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;Server69&amp;nbsp; &amp;nbsp;Carson_MDCM_Servers&lt;/STRONG&gt;&lt;/FONT&gt; &amp;nbsp; &amp;nbsp; &lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;A Loadbalancer Server Status is changed to UP&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;Aug 07, 2020 - 01:50 &lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;Server69&amp;nbsp; &amp;nbsp;Carson_MDCM_Servers&lt;/STRONG&gt;&lt;/FONT&gt; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;&lt;FONT color="#00FF00"&gt;A Loadbalancer Server Status is changed to DOWN&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&lt;FONT face="Arial, sans-serif"&gt;&lt;SPAN&gt;From the results it seems like the only &lt;/SPAN&gt;&lt;SPAN&gt;discrepancy&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;if from the data being parsed from the&amp;nbsp;Aug 7 03:01:12 event which is the only one that contains event values for TWO different Servers (Server69 and Server81)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&lt;FONT face="Arial, sans-serif"&gt;&lt;SPAN&gt;all of the other events being extracted during the searches timeframes only contain events for a single servername&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&lt;FONT face="Arial, sans-serif"&gt;&lt;SPAN&gt;So it looks like it is not pulling the correct server from the two middle events in the following log&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&lt;FONT face="Arial, sans-serif"&gt;&lt;SPAN&gt;Aug 7 03:01:12 NSX-Edge03-0 MsgMgr[2349]: [MDCM]: payload len:1019 data:{"systemEvents":[{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30302", &lt;FONT color="#FF00FF"&gt;"message":"A Loadbalancer Server Status is changed to DOWN"&lt;/FONT&gt;, "timestamp":1596794458, "metaData":{ &lt;FONT color="#FF00FF"&gt;"listener" : "Carson_MDCM_Servers"&lt;/FONT&gt;, &lt;FONT color="#FF00FF"&gt;"server" : "Server69"&lt;/FONT&gt; } },{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30302", &lt;FONT color="#FF00FF"&gt;"message":"A Loadbalancer Server Status is changed to DOWN"&lt;/FONT&gt;, "timestamp":1596794458, "metaData":{ &lt;FONT color="#FF00FF"&gt;"listener" : "WT_MDCM_Servers"&lt;/FONT&gt;, &lt;FONT color="#FF00FF"&gt;"server" : "Server81"&lt;/FONT&gt; } },{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30301", &lt;FONT color="#FF00FF"&gt;"message":"A Loadbalancer Server Status is changed to UP"&lt;/FONT&gt;, "timestamp":1596794468, "metaData":{ &lt;FONT color="#FF00FF"&gt;"listener" : "WT_MDCM_Servers"&lt;/FONT&gt;, &lt;FONT color="#FF00FF"&gt;"server" : "Server81"&lt;/FONT&gt; } },{ "moduleName":"vShield Edge LoadBalancer", "severity":"Informational", "eventCode":"30301", &lt;FONT color="#FF00FF"&gt;"message":"A Loadbalancer Server Status is changed to UP"&lt;/FONT&gt;, "timestamp":1596794478, "metaData":{ "listener" : "Carson_MDCM_Servers", "server" : "Server69" } }]}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 18:31:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-for-multiple-fields-within-a/m-p/513071#M143950</guid>
      <dc:creator>cbwillh</dc:creator>
      <dc:date>2020-08-07T18:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple values for multiple fields within a single event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-for-multiple-fields-within-a/m-p/513074#M143951</link>
      <description>&lt;P&gt;sample:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal |head 1| fields _raw _time | eval _raw="Aug 7 01:50:12 NSX-Edge03-0 MsgMgr[2349]: [MDCM]: payload len:272 data:{\"systemEvents\":[{ \"moduleName\":\"vShield Edge LoadBalancer\", \"severity\":\"Informational\", \"eventCode\":\"30302\", \"message\":\"A Loadbalancer Server Status is changed to DOWN\", \"timestamp\":1596790245, \"metaData\":{ \"listener\" : \"Carson_MDCM_Servers\", \"server\" : \"Server69\" } }]}"
| appendpipe [ | eval _raw="Aug 7 01:51:12 NSX-Edge03-0 MsgMgr[2349]: [MDCM]: payload len:270 data:{\"systemEvents\":[{ \"moduleName\":\"vShield Edge LoadBalancer\", \"severity\":\"Informational\", \"eventCode\":\"30301\", \"message\":\"A Loadbalancer Server Status is changed to UP\", \"timestamp\":1596790256, \"metaData\":{ \"listener\" : \"Carson_MDCM_Servers\", \"server\" : \"Server69\" } }]}"
| appendpipe [ | eval _raw="Aug 7 02:46:12 NSX-Edge03-0 MsgMgr[2349]: [MDCM]: payload len:515 data:{\"systemEvents\":[{ \"moduleName\":\"vShield Edge LoadBalancer\", \"severity\":\"Informational\", \"eventCode\":\"30302\", \"message\":\"A Loadbalancer Server Status is changed to DOWN\", \"timestamp\":1596793558, \"metaData\":{ \"listener\" : \"WT_MDCM_Servers\", \"server\" : \"Server62\" } },{ \"moduleName\":\"vShield Edge LoadBalancer\", \"severity\":\"Informational\", \"eventCode\":\"30301\", \"message\":\"A Loadbalancer Server Status is changed to UP\", \"timestamp\":1596793578, \"metaData\":{ \"listener\" : \"WT_MDCM_Servers\", \"server\" : \"Server62\" } }]}"
| appendpipe [ eval _raw="Aug 7 03:01:12 NSX-Edge03-0 MsgMgr[2349]: [MDCM]: payload len:1019 data:{\"systemEvents\":[{ \"moduleName\":\"vShield Edge LoadBalancer\", \"severity\":\"Informational\", \"eventCode\":\"30302\", \"message\":\"A Loadbalancer Server Status is changed to DOWN\", \"timestamp\":1596794458, \"metaData\":{ \"listener\" : \"Carson_MDCM_Servers\", \"server\" : \"Server69\" } },{ \"moduleName\":\"vShield Edge LoadBalancer\", \"severity\":\"Informational\", \"eventCode\":\"30302\", \"message\":\"A Loadbalancer Server Status is changed to DOWN\", \"timestamp\":1596794458, \"metaData\":{ \"listener\" : \"WT_MDCM_Servers\", \"server\" : \"Server81\" } },{ \"moduleName\":\"vShield Edge LoadBalancer\", \"severity\":\"Informational\", \"eventCode\":\"30301\", \"message\":\"A Loadbalancer Server Status is changed to UP\", \"timestamp\":1596794468, \"metaData\":{ \"listener\" : \"WT_MDCM_Servers\", \"server\" : \"Server81\" } },{ \"moduleName\":\"vShield Edge LoadBalancer\", \"severity\":\"Informational\", \"eventCode\":\"30301\", \"message\":\"A Loadbalancer Server Status is changed to UP\", \"timestamp\":1596794478, \"metaData\":{ \"listener\" : \"Carson_MDCM_Servers\", \"server\" : \"Server69\" } }]}"
| appendpipe [ eval _raw="Aug 7 05:28:12 NSX-Edge03-0 MsgMgr[2349]: [MDCM]: payload len:523 data:{\"systemEvents\":[{ \"moduleName\":\"vShield Edge LoadBalancer\", \"severity\":\"Informational\", \"eventCode\":\"30302\", \"message\":\"A Loadbalancer Server Status is changed to DOWN\", \"timestamp\":1596803281, \"metaData\":{ \"listener\" : \"Carson_MDCM_Servers\", \"server\" : \"Server69\" } },{ \"moduleName\":\"vShield Edge LoadBalancer\", \"severity\":\"Informational\", \"eventCode\":\"30301\", \"message\":\"A Loadbalancer Server Status is changed to UP\", \"timestamp\":1596803291, \"metaData\":{ \"listener\" : \"Carson_MDCM_Servers\", \"server\" : \"Server69\" } }]}"]]]]
| rex "(?&amp;lt;time&amp;gt;.*)\sNSX-Edge"
| eval _time=strptime(time,"%B %d %T")
| rex "(?&amp;lt;json&amp;gt;{.*})"
| spath input=json systemEvents{} output=systemEvents
| stats values(_time) as _time by systemEvents
| spath input=systemEvents
| fields - systemEvents&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;recommend:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=syslog_nsxedge host="NSX-Edge03-0" server!="NULL"
| rex "(?&amp;lt;json&amp;gt;{.*})"
| spath input=json systemEvents{} output=systemEvents
| stats values(_time) as _time by systemEvents
| spath input=systemEvents
| fields - systemEvents
| eval _time=strptime(timestamp,"%s")
| sort _time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 18:46:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-for-multiple-fields-within-a/m-p/513074#M143951</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-08-07T18:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple values for multiple fields within a single event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-for-multiple-fields-within-a/m-p/513079#M143953</link>
      <description>&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I took one event and tried like below.&lt;/P&gt;&lt;P&gt;| makeresults&lt;BR /&gt;| eval value= "Aug 7 03:01:12 NSX-Edge03-0 MsgMgr[2349]: [MDCM]: payload len:1019 data:{\"systemEvents\":[{ \"moduleName\":\"vShield Edge LoadBalancer\", \"severity\":\"Informational\", \"eventCode\":\"30302\", \"message\":\"A Loadbalancer Server Status is changed to DOWN\", \"timestamp\":1596794458, \"metaData\":{ \"listener\" : \"Carson_MDCM_Servers\", \"server\" : \"Server69\" } },{ \"moduleName\":\"vShield Edge LoadBalancer\", \"severity\":\"Informational\", \"eventCode\":\"30302\", \"message\":\"A Loadbalancer Server Status is changed to DOWN\", \"timestamp\":1596794458, \"metaData\":{ \"listener\" : \"WT_MDCM_Servers\", \"server\" : \"Server81\" } },{ \"moduleName\":\"vShield Edge LoadBalancer\", \"severity\":\"Informational\", \"eventCode\":\"30301\", \"message\":\"A Loadbalancer Server Status is changed to UP\", \"timestamp\":1596794468, \"metaData\":{ \"listener\" : \"WT_MDCM_Servers\", \"server\" : \"Server81\" } },{ \"moduleName\":\"vShield Edge LoadBalancer\", \"severity\":\"Informational\", \"eventCode\":\"30301\", \"message\":\"A Loadbalancer Server Status is changed to UP\", \"timestamp\":1596794478, \"metaData\":{ \"listener\" : \"Carson_MDCM_Servers\", \"server\" : \"Server69\" } }]}"&lt;BR /&gt;| rex field=value max_match=0 "message\":\"(?&amp;lt;TotalMessage&amp;gt;[^\"]+)"&lt;BR /&gt;| rex field=value max_match=0 "listener\" : \"(?&amp;lt;Site&amp;gt;[^\"]+)"&lt;BR /&gt;| rex field=value max_match=0 "server\" : \"(?&amp;lt;Server&amp;gt;[^\"]+)"&lt;BR /&gt;| table Server,Site,TotalMessage&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spitchika_0-1596826736373.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10113iBA44E62DCDAF4730/image-size/large?v=v2&amp;amp;px=999" role="button" title="spitchika_0-1596826736373.png" alt="spitchika_0-1596826736373.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 18:59:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-for-multiple-fields-within-a/m-p/513079#M143953</guid>
      <dc:creator>spitchika</dc:creator>
      <dc:date>2020-08-07T18:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple values for multiple fields within a single event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-for-multiple-fields-within-a/m-p/513080#M143954</link>
      <description>&lt;P&gt;hello to4kawa&lt;/P&gt;&lt;P&gt;thanks so much for your help. that did the trick.&lt;/P&gt;&lt;P&gt;using your search as a base I simply added a table to eliminate a few of the fields we do not need and renamed the fields to simpler ones for our needs and it worked great!&lt;/P&gt;&lt;P&gt;very much appreciated.&lt;/P&gt;&lt;P&gt;I do wish I could give some points to spitchika as well. the solutions offered by spitchika (though a different approach from your solution) really got me close.&lt;/P&gt;&lt;P&gt;but in the end yours really worked great and displays everything accurately and just what we needed.&lt;/P&gt;&lt;P&gt;thanks so much for your help. I have created a lot of alerts for our business but still learning a LOT as regex is very hard to get my head around.&lt;/P&gt;&lt;P&gt;kind regards and thanks again!&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 19:01:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-for-multiple-fields-within-a/m-p/513080#M143954</guid>
      <dc:creator>cbwillh</dc:creator>
      <dc:date>2020-08-07T19:01:26Z</dc:date>
    </item>
  </channel>
</rss>

