<?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: Convert a string to table in splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Convert-a-string-to-table-in-splunk/m-p/542334#M90621</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/64290"&gt;@bharat149&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YOUR_SEARCH
| rex field=_raw "customerId (?&amp;lt;customerId&amp;gt;.*),\soperation\s(?&amp;lt;operation&amp;gt;.*),consumedUnits\s(?&amp;lt;consumedUnits&amp;gt;.*)"
|table customerId operation consumedUnits&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample Search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval event="From abc customerId YETNAKCNK, operation create,consumedUnits 0|From abc customerId YETNAKCNJ, operation update,consumedUnits 2" 
| eval event=split(event,"|") 
| mvexpand event 
| rename event as _raw
| rex field=_raw "customerId (?&amp;lt;customerId&amp;gt;.*),\soperation\s(?&amp;lt;operation&amp;gt;.*),consumedUnits\s(?&amp;lt;consumedUnits&amp;gt;.*)"
|table customerId operation consumedUnits&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 04 Mar 2021 10:55:54 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2021-03-04T10:55:54Z</dc:date>
    <item>
      <title>Convert a string to table in splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-a-string-to-table-in-splunk/m-p/542333#M90620</link>
      <description>&lt;P&gt;Hi All i have result in the below format :&lt;BR /&gt;&lt;SPAN&gt;"From abc customerId YETNAKCNK, operation create,consumedUnits 0"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"From abc customerId YETNAKCNJ, operation update,consumedUnits 2"&lt;BR /&gt;&lt;BR /&gt;I have to convert the below data to the following format :&amp;nbsp;&lt;BR /&gt;customerId&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;operation&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;consumedUnits&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;YETNAKCNK.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;create&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;YETNAKCNJ&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;update&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 10:49:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-a-string-to-table-in-splunk/m-p/542333#M90620</guid>
      <dc:creator>bharat149</dc:creator>
      <dc:date>2021-03-04T10:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a string to table in splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-a-string-to-table-in-splunk/m-p/542334#M90621</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/64290"&gt;@bharat149&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YOUR_SEARCH
| rex field=_raw "customerId (?&amp;lt;customerId&amp;gt;.*),\soperation\s(?&amp;lt;operation&amp;gt;.*),consumedUnits\s(?&amp;lt;consumedUnits&amp;gt;.*)"
|table customerId operation consumedUnits&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample Search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval event="From abc customerId YETNAKCNK, operation create,consumedUnits 0|From abc customerId YETNAKCNJ, operation update,consumedUnits 2" 
| eval event=split(event,"|") 
| mvexpand event 
| rename event as _raw
| rex field=_raw "customerId (?&amp;lt;customerId&amp;gt;.*),\soperation\s(?&amp;lt;operation&amp;gt;.*),consumedUnits\s(?&amp;lt;consumedUnits&amp;gt;.*)"
|table customerId operation consumedUnits&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 04 Mar 2021 10:55:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-a-string-to-table-in-splunk/m-p/542334#M90621</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-03-04T10:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a string to table in splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-a-string-to-table-in-splunk/m-p/542336#M90622</link>
      <description>&lt;P&gt;and if i want to apply filter for the customer Id&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 11:17:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-a-string-to-table-in-splunk/m-p/542336#M90622</guid>
      <dc:creator>bharat149</dc:creator>
      <dc:date>2021-03-04T11:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a string to table in splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-a-string-to-table-in-splunk/m-p/542337#M90623</link>
      <description>&lt;P&gt;jus add&lt;BR /&gt;| where customerId="YETNAKCNK"&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 11:20:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-a-string-to-table-in-splunk/m-p/542337#M90623</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-03-04T11:20:41Z</dc:date>
    </item>
  </channel>
</rss>

