<?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 from output to create new column in table with associated values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-from-output-to-create-new-column/m-p/547219#M155145</link>
    <description>&lt;P&gt;I modified your example show it working for PM times and included a colon after Time to make it consistent, but this is an example of how you might approach it&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="CompName: XXX XXX Type: XXX EmpName: XXX Date: 23-03-2021 Time: 9:00PM Notes: WXYZ"
| rex "Date:\s(?&amp;lt;date&amp;gt;[^\s]+)\sTime:\s(?&amp;lt;time&amp;gt;[^\s]+)\sNotes:\s(?&amp;lt;notes&amp;gt;.*)"
| eval _time=strptime(date." ".time,"%d-%m-%Y %I:%M%p")&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 08 Apr 2021 15:08:19 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-04-08T15:08:19Z</dc:date>
    <item>
      <title>How to extract multiple values from output to create new column in table with associated values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-from-output-to-create-new-column/m-p/547213#M155142</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a search query that produces a value similar to below.&amp;nbsp; What i am trying to accomplish is to extract the "Data", "Time", and "Notes" section and to output those values to a table with each in a separate column.&amp;nbsp; &amp;nbsp;What would be an efficient way to accomplish this?&amp;nbsp; I am seeing some regex syntax fines but not as familiar with it.&amp;nbsp; Any help is appreciated.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;----------------------------------------&lt;/P&gt;&lt;P&gt;Value:&lt;/P&gt;&lt;P&gt;CompName: XXX XXX Type: XXX EmpName: XXX Date: XX-XX-XXXX Time 9:00AM Notes: XXXX&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 14:29:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-from-output-to-create-new-column/m-p/547213#M155142</guid>
      <dc:creator>najaplit</dc:creator>
      <dc:date>2021-04-08T14:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple values from output to create new column in table with associated values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-from-output-to-create-new-column/m-p/547219#M155145</link>
      <description>&lt;P&gt;I modified your example show it working for PM times and included a colon after Time to make it consistent, but this is an example of how you might approach it&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="CompName: XXX XXX Type: XXX EmpName: XXX Date: 23-03-2021 Time: 9:00PM Notes: WXYZ"
| rex "Date:\s(?&amp;lt;date&amp;gt;[^\s]+)\sTime:\s(?&amp;lt;time&amp;gt;[^\s]+)\sNotes:\s(?&amp;lt;notes&amp;gt;.*)"
| eval _time=strptime(date." ".time,"%d-%m-%Y %I:%M%p")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Apr 2021 15:08:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-from-output-to-create-new-column/m-p/547219#M155145</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-08T15:08:19Z</dc:date>
    </item>
  </channel>
</rss>

