<?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 one value from log in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-one-value-from-log/m-p/540344#M152865</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/162388"&gt;@Kwip&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thank you for helping. Problem is this just example i gave, values for country and licensePlate are different in events. So, i need from that row to take only value of license.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 18 Feb 2021 07:50:14 GMT</pubDate>
    <dc:creator>ivana27</dc:creator>
    <dc:date>2021-02-18T07:50:14Z</dc:date>
    <item>
      <title>how to extract one value from log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-one-value-from-log/m-p/540113#M152774</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have log like this&lt;/P&gt;&lt;P&gt;[Information] WebService Call CheckVehicle : country=111111, licensePlate=12DUMMY&lt;/P&gt;&lt;P&gt;And i would like to extract only&amp;nbsp;licensePlate using maybe rex.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 14:56:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-one-value-from-log/m-p/540113#M152774</guid>
      <dc:creator>ivana27</dc:creator>
      <dc:date>2021-02-16T14:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract one value from log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-one-value-from-log/m-p/540125#M152778</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230051"&gt;@ivana27&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you should already have the required field extraction because Splunk recognises the pair field_name=field_value.&lt;/P&gt;&lt;P&gt;Anyway, using regex, you could try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "licensePlate\=(?&amp;lt;licensePlate&amp;gt;[^ ]+)"&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/oQDejO/1" target="_blank"&gt;https://regex101.com/r/oQDejO/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 15:49:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-one-value-from-log/m-p/540125#M152778</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-02-16T15:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract one value from log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-one-value-from-log/m-p/540127#M152779</link>
      <description>&lt;P&gt;Thank you for quick respond, i already put same rex command but in event there is several places where licensePlate is shown but i want extract only from that exact log mentioned here.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 15:55:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-one-value-from-log/m-p/540127#M152779</guid>
      <dc:creator>ivana27</dc:creator>
      <dc:date>2021-02-16T15:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract one value from log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-one-value-from-log/m-p/540129#M152780</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230051"&gt;@ivana27&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if this answer solves your problem please accept it for the other people of Community, otherwise tell me if I can help you more.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 16:00:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-one-value-from-log/m-p/540129#M152780</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-02-16T16:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract one value from log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-one-value-from-log/m-p/540200#M152798</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thank you for reply. I still didnt solve it &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is it possible to refer only to this log and extract only from there licence?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 07:57:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-one-value-from-log/m-p/540200#M152798</guid>
      <dc:creator>ivana27</dc:creator>
      <dc:date>2021-02-17T07:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract one value from log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-one-value-from-log/m-p/540201#M152799</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230051"&gt;@ivana27&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if the problem is that the Regex takes more values that the correct one, the only way is to create a regex more complex that recognizes only the correct values.&lt;/P&gt;&lt;P&gt;If the problem is that the&amp;nbsp;&lt;SPAN&gt;licensePlate field is also automatically extracted by Splunk and sometimes in a not correct way, you could use a different name for the regex extraction and use that field instead the other in your searches.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 08:08:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-one-value-from-log/m-p/540201#M152799</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-02-17T08:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract one value from log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-one-value-from-log/m-p/540301#M152843</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230051"&gt;@ivana27&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;If you want to extract only from the mentioned log, include the unique information from the specific log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| rex field=_raw "&lt;SPAN&gt;country=111111\, licensePlate=(?&amp;lt;LicensePlate&amp;gt;[^ ]+)&lt;/SPAN&gt;"&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 19:43:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-one-value-from-log/m-p/540301#M152843</guid>
      <dc:creator>Kwip</dc:creator>
      <dc:date>2021-02-17T19:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract one value from log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-one-value-from-log/m-p/540344#M152865</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/162388"&gt;@Kwip&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thank you for helping. Problem is this just example i gave, values for country and licensePlate are different in events. So, i need from that row to take only value of license.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 07:50:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-one-value-from-log/m-p/540344#M152865</guid>
      <dc:creator>ivana27</dc:creator>
      <dc:date>2021-02-18T07:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract one value from log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-one-value-from-log/m-p/540346#M152866</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230051"&gt;@ivana27&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you cannot identify a more complex regex (as me an&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/162388"&gt;@Kwip&lt;/a&gt;&amp;nbsp;hinted), the only way if my other hint: use a different name for the regex extracted field.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 07:54:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-one-value-from-log/m-p/540346#M152866</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-02-18T07:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract one value from log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-one-value-from-log/m-p/540349#M152867</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230051"&gt;@ivana27&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp; is right.&lt;/P&gt;&lt;P&gt;So you mean the log format is going to be the same and&amp;nbsp; country value will change ? And you want to extract&amp;nbsp;&lt;SPAN&gt;licensePlate values on this pattern of logs?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Try something below,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| rex field=_raw "&lt;/SPAN&gt;&lt;SPAN&gt;country=\d+\, licensePlate=(?&amp;lt;LicensePlateNumber&amp;gt;[^ ]+)&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 08:52:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-one-value-from-log/m-p/540349#M152867</guid>
      <dc:creator>Kwip</dc:creator>
      <dc:date>2021-02-18T08:52:27Z</dc:date>
    </item>
  </channel>
</rss>

