<?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 write the regex to extract this IP from my data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-the-regex-to-extract-this-IP-from-my-data/m-p/217395#M63870</link>
    <description>&lt;P&gt;Try something like this (run anywhere sample)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 | eval _raw="[2016-02-08T10:29:51.992-05:00] [octetstring] [TRACE] [] [com.octetstring.vde.DoSManager] [tid: 1841020] [ecid: 0000LB1RQ_gB9Dyso4P__m1MAxqb01VGWZ,0] [SRC_CLASS: com.octetstring.vde.util.VDELogger] [SRC_METHOD: debug] UnBind: cn=id,ou=applications,ou=example,ou=example,dc=eg,dc=com/54.16.26.209." | table _raw 
| rex "dc=\S+\/(?&amp;lt;IPAddress&amp;gt;\d+\.\d+\.\d+\.\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 24 Feb 2016 18:31:33 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-02-24T18:31:33Z</dc:date>
    <item>
      <title>How to write the regex to extract this IP from my data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-the-regex-to-extract-this-IP-from-my-data/m-p/217394#M63869</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;

&lt;P&gt;I have the below log details and I need to extract only the IP that comes after &lt;CODE&gt;/&lt;/CODE&gt;. Id remains same for all the commands.&lt;/P&gt;

&lt;P&gt;There is no proper field that includes dn, so its hard to extract based on any field.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[2016-02-08T10:29:51.992-05:00] [octetstring] [TRACE] [] [com.octetstring.vde.DoSManager] [tid: 1841020] [ecid: 0000LB1RQ_gB9Dyso4P__m1MAxqb01VGWZ,0] [SRC_CLASS: com.octetstring.vde.util.VDELogger] [SRC_METHOD: debug] UnBind: cn=id,ou=applications,ou=example,ou=example,dc=eg,dc=com/54.16.26.209.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Venkat&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2016 14:32:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-the-regex-to-extract-this-IP-from-my-data/m-p/217394#M63869</guid>
      <dc:creator>venkatalbert</dc:creator>
      <dc:date>2016-02-24T14:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the regex to extract this IP from my data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-the-regex-to-extract-this-IP-from-my-data/m-p/217395#M63870</link>
      <description>&lt;P&gt;Try something like this (run anywhere sample)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 | eval _raw="[2016-02-08T10:29:51.992-05:00] [octetstring] [TRACE] [] [com.octetstring.vde.DoSManager] [tid: 1841020] [ecid: 0000LB1RQ_gB9Dyso4P__m1MAxqb01VGWZ,0] [SRC_CLASS: com.octetstring.vde.util.VDELogger] [SRC_METHOD: debug] UnBind: cn=id,ou=applications,ou=example,ou=example,dc=eg,dc=com/54.16.26.209." | table _raw 
| rex "dc=\S+\/(?&amp;lt;IPAddress&amp;gt;\d+\.\d+\.\d+\.\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Feb 2016 18:31:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-the-regex-to-extract-this-IP-from-my-data/m-p/217395#M63870</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-24T18:31:33Z</dc:date>
    </item>
  </channel>
</rss>

