<?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 Hello, I need help to extract a value from a string in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Hello-I-need-help-to-extract-a-value-from-a-string/m-p/522815#M147441</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope someone can help me with the following situation.&lt;BR /&gt;I have multiple events generated from Azure Devops like the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{"system.pullRequest.pullRequestId":"223033","system.pullRequest.sourceBranch":"refs/heads/release","system.pullRequest.targetBranch":"refs/heads/master","system.pullRequest.sourceCommitId":"e000000a962ff66c19aacXXXXXXX4c7","system.pullRequest.sourceRepositoryUri":"&lt;A href="https://siteXXX.visualstudio.com/XXXX%XXX%20ds%XXXX%C3%ADa/_git/AWXXX000&amp;quot;,&amp;quot;system.pullRequest.pullRequestIteration&amp;quot;:&amp;quot;1" target="_blank" rel="noopener"&gt;https://siteXXX.visualstudio.com/XXXX%XXX%20ds%XXXX%C3%ADa/_git/AWXXX000","system.pullRequest.pullRequestIteration":"1&lt;/A&gt;"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to extract the value that corresponds to the field "system.pullRequest.pullRequestId", for this example it is "223033", I have not been able to achieve it yet. Any idea how to do it?&lt;/P&gt;&lt;P&gt;For some events the field "system.pullRequest.pullRequestId" is not at the beginning of the string, it can be in the middle or at the end, the position varies with each event.&lt;/P&gt;&lt;P&gt;I appreciate any help you can give me.&lt;/P&gt;</description>
    <pubDate>Sat, 03 Oct 2020 19:48:15 GMT</pubDate>
    <dc:creator>flck</dc:creator>
    <dc:date>2020-10-03T19:48:15Z</dc:date>
    <item>
      <title>Hello, I need help to extract a value from a string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Hello-I-need-help-to-extract-a-value-from-a-string/m-p/522815#M147441</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope someone can help me with the following situation.&lt;BR /&gt;I have multiple events generated from Azure Devops like the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{"system.pullRequest.pullRequestId":"223033","system.pullRequest.sourceBranch":"refs/heads/release","system.pullRequest.targetBranch":"refs/heads/master","system.pullRequest.sourceCommitId":"e000000a962ff66c19aacXXXXXXX4c7","system.pullRequest.sourceRepositoryUri":"&lt;A href="https://siteXXX.visualstudio.com/XXXX%XXX%20ds%XXXX%C3%ADa/_git/AWXXX000&amp;quot;,&amp;quot;system.pullRequest.pullRequestIteration&amp;quot;:&amp;quot;1" target="_blank" rel="noopener"&gt;https://siteXXX.visualstudio.com/XXXX%XXX%20ds%XXXX%C3%ADa/_git/AWXXX000","system.pullRequest.pullRequestIteration":"1&lt;/A&gt;"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to extract the value that corresponds to the field "system.pullRequest.pullRequestId", for this example it is "223033", I have not been able to achieve it yet. Any idea how to do it?&lt;/P&gt;&lt;P&gt;For some events the field "system.pullRequest.pullRequestId" is not at the beginning of the string, it can be in the middle or at the end, the position varies with each event.&lt;/P&gt;&lt;P&gt;I appreciate any help you can give me.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2020 19:48:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Hello-I-need-help-to-extract-a-value-from-a-string/m-p/522815#M147441</guid>
      <dc:creator>flck</dc:creator>
      <dc:date>2020-10-03T19:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, I need help to extract a value from a string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Hello-I-need-help-to-extract-a-value-from-a-string/m-p/522819#M147442</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "system\.pullRequest\.pullRequestId\":\"(?&amp;lt;pullrequestid&amp;gt;\d+)\""&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 03 Oct 2020 20:16:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Hello-I-need-help-to-extract-a-value-from-a-string/m-p/522819#M147442</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-03T20:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, I need help to extract a value from a string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Hello-I-need-help-to-extract-a-value-from-a-string/m-p/522822#M147445</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for your answer, I tested the rex and it only counts but it does not extract the field I need. Trying a little more I was able to extract it like this:&lt;/P&gt;&lt;P&gt;... | eval _raw = parameters | extract&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2020 23:28:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Hello-I-need-help-to-extract-a-value-from-a-string/m-p/522822#M147445</guid>
      <dc:creator>flck</dc:creator>
      <dc:date>2020-10-03T23:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, I need help to extract a value from a string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Hello-I-need-help-to-extract-a-value-from-a-string/m-p/522830#M147446</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/30867"&gt;@flck&lt;/a&gt;&amp;nbsp;..&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;may we know what output you get with this above rex query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2020 03:28:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Hello-I-need-help-to-extract-a-value-from-a-string/m-p/522830#M147446</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2020-10-04T03:28:48Z</dc:date>
    </item>
  </channel>
</rss>

