<?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 fields values including keywords in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-values-including-keywords/m-p/631544#M219353</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252530"&gt;@Mr_Adate&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;have you in your props.conf the "INDEXED_EXTRACTIONS = csv" option ?&lt;/P&gt;&lt;P&gt;If yes, you should already have the data separated as fields.&lt;/P&gt;&lt;P&gt;Tiy can find many video that describe how to do it, e.g.&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=3kx0OGKy_XU" target="_blank"&gt;https://www.youtube.com/watch?v=3kx0OGKy_XU&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 20 Feb 2023 09:54:19 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-02-20T09:54:19Z</dc:date>
    <item>
      <title>How to extract fields values including keywords</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-values-including-keywords/m-p/631523#M219343</link>
      <description>&lt;P&gt;I have three fields like "&lt;/P&gt;&lt;P&gt;field1=SGSIFASFFWR035A&lt;/P&gt;&lt;P&gt;field2=AXAZCBDM02&lt;/P&gt;&lt;P&gt;fields3=ESESDFAADFSABBM00002&lt;/P&gt;&lt;P&gt;in above examples I want to extract field values like these;&lt;/P&gt;&lt;P&gt;field1=FWR035A (any character after FW* including FW)&lt;/P&gt;&lt;P&gt;field2=BDM02 (any character after BDM* including BDM)&lt;/P&gt;&lt;P&gt;fields3=BBM00002 (any character after BBM* including BBM )&lt;BR /&gt;&lt;BR /&gt;additionally, I want to&amp;nbsp; to use single&amp;nbsp; command to extract all three field values in one go.&lt;/P&gt;&lt;P&gt;like "FW*|BDM"|BBM*"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using below rex command to extract it but it is not including FW keyword in extracted field&lt;/P&gt;&lt;P&gt;| rex field=&amp;nbsp;field1 "FW(?&amp;lt;AFTERTHISKEYWORD&amp;gt;\S+)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you can provide a workable solution either using rex and eval or another code, it would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 08:42:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-values-including-keywords/m-p/631523#M219343</guid>
      <dc:creator>Mr_Adate</dc:creator>
      <dc:date>2023-02-20T08:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields values including keywords</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-values-including-keywords/m-p/631525#M219344</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252530"&gt;@Mr_Adate&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;could you share some sample of your logs to test the regex?&lt;/P&gt;&lt;P&gt;then, if you already have fields1, field2 and field3 and you want to take all the content, including prefix, whay do you need a regex?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 08:50:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-values-including-keywords/m-p/631525#M219344</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-02-20T08:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields values including keywords</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-values-including-keywords/m-p/631526#M219345</link>
      <description>&lt;P&gt;rex can't be used to operate on more than one field at a time. However, you could operate on _raw, but in order to help you, you would need to share some examples of your raw events (not just the fields you have already extracted).&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 08:59:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-values-including-keywords/m-p/631526#M219345</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-02-20T08:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields values including keywords</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-values-including-keywords/m-p/631539#M219351</link>
      <description>&lt;P&gt;I have uploaded .csv file&amp;nbsp;&lt;/P&gt;&lt;TABLE width="305"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="162"&gt;Firewall&lt;/TD&gt;&lt;TD width="61"&gt;Interface&lt;/TD&gt;&lt;TD width="82"&gt;Description&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;SGSIFASFFWR035A&lt;/TD&gt;&lt;TD&gt;port8&lt;/TD&gt;&lt;TD&gt;xafdy&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AXAZCBDM02&lt;/TD&gt;&lt;TD&gt;port15.2&lt;/TD&gt;&lt;TD&gt;wawfesvcds&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ESESDFAADFSABBM00002&lt;/TD&gt;&lt;TD&gt;port11&lt;/TD&gt;&lt;TD&gt;asdfasdf&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to extract field values from Firewall field name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 09:26:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-values-including-keywords/m-p/631539#M219351</guid>
      <dc:creator>Mr_Adate</dc:creator>
      <dc:date>2023-02-20T09:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields values including keywords</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-values-including-keywords/m-p/631540#M219352</link>
      <description>&lt;P&gt;I don't have _raw filed as I am uploading file from csv format&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 09:28:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-values-including-keywords/m-p/631540#M219352</guid>
      <dc:creator>Mr_Adate</dc:creator>
      <dc:date>2023-02-20T09:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields values including keywords</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-values-including-keywords/m-p/631544#M219353</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252530"&gt;@Mr_Adate&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;have you in your props.conf the "INDEXED_EXTRACTIONS = csv" option ?&lt;/P&gt;&lt;P&gt;If yes, you should already have the data separated as fields.&lt;/P&gt;&lt;P&gt;Tiy can find many video that describe how to do it, e.g.&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=3kx0OGKy_XU" target="_blank"&gt;https://www.youtube.com/watch?v=3kx0OGKy_XU&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 09:54:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-values-including-keywords/m-p/631544#M219353</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-02-20T09:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields values including keywords</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-values-including-keywords/m-p/631550#M219356</link>
      <description>&lt;P&gt;Thanks for your reply..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have uploaded file as lookup not props.conf.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 10:20:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-values-including-keywords/m-p/631550#M219356</guid>
      <dc:creator>Mr_Adate</dc:creator>
      <dc:date>2023-02-20T10:20:55Z</dc:date>
    </item>
  </channel>
</rss>

