<?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 apply regex to lookup table field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-apply-regex-to-lookup-table-field/m-p/669339#M229576</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help with example of how to write the code?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|inputlookup myTable.csv
|where _time=relative_time(now(),"-1d@d")&lt;/LI-CODE&gt;&lt;P&gt;Now I need to apply the regular expression on fieldA and store the extracted data from each row in field: res.&lt;/P&gt;&lt;P&gt;It would be very helpful if you could help.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Tue, 21 Nov 2023 14:56:47 GMT</pubDate>
    <dc:creator>Taruchit</dc:creator>
    <dc:date>2023-11-21T14:56:47Z</dc:date>
    <item>
      <title>How to apply regex to lookup table field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-apply-regex-to-lookup-table-field/m-p/669333#M229572</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have a lookup file with multiple fields. I am reading it using inputlookup command and implementing some filters. Now&amp;nbsp; I need to apply regex on a field and extract the corresponding matched string from each row of the lookup into a separate field.&lt;/P&gt;&lt;P&gt;The regex is: xxx[\_\w]+:([a-z_]+)&lt;/P&gt;&lt;P&gt;Thus, I need your guidance and inputs to build the same.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Taruchit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 14:28:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-apply-regex-to-lookup-table-field/m-p/669333#M229572</guid>
      <dc:creator>Taruchit</dc:creator>
      <dc:date>2023-11-21T14:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply regex to lookup table field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-apply-regex-to-lookup-table-field/m-p/669335#M229574</link>
      <description>&lt;P&gt;You need to specify a field that you wish the extracted pattern to be put in - for example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;xxx[\_\w]+:(?&amp;lt;fieldname&amp;gt;[a-z_]+)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 21 Nov 2023 14:44:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-apply-regex-to-lookup-table-field/m-p/669335#M229574</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-21T14:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply regex to lookup table field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-apply-regex-to-lookup-table-field/m-p/669339#M229576</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help with example of how to write the code?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|inputlookup myTable.csv
|where _time=relative_time(now(),"-1d@d")&lt;/LI-CODE&gt;&lt;P&gt;Now I need to apply the regular expression on fieldA and store the extracted data from each row in field: res.&lt;/P&gt;&lt;P&gt;It would be very helpful if you could help.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 14:56:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-apply-regex-to-lookup-table-field/m-p/669339#M229576</guid>
      <dc:creator>Taruchit</dc:creator>
      <dc:date>2023-11-21T14:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply regex to lookup table field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-apply-regex-to-lookup-table-field/m-p/669347#M229577</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex field=fieldA "xxx[\_\w]+:(?&amp;lt;res&amp;gt;[a-z_]+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 21 Nov 2023 15:13:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-apply-regex-to-lookup-table-field/m-p/669347#M229577</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-21T15:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply regex to lookup table field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-apply-regex-to-lookup-table-field/m-p/669356#M229584</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;for your prompt help.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 15:48:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-apply-regex-to-lookup-table-field/m-p/669356#M229584</guid>
      <dc:creator>Taruchit</dc:creator>
      <dc:date>2023-11-21T15:48:23Z</dc:date>
    </item>
  </channel>
</rss>

