<?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 store a value from rex and reuse this value in another search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-store-a-value-from-rex-and-reuse-this-value-in-another/m-p/553267#M157066</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226572"&gt;@silverem78&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry for the error try this search and please share the result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; index=* sourcetype=log2  src_ip="1.1.1.1" 
| rex field=_raw "src-ip (?&amp;lt;src-ip&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})" | eval src_ip =src-ip | table src_ip | format&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 May 2021 08:24:51 GMT</pubDate>
    <dc:creator>aasabatini</dc:creator>
    <dc:date>2021-05-27T08:24:51Z</dc:date>
    <item>
      <title>how to store a value from rex and reuse this value in another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-store-a-value-from-rex-and-reuse-this-value-in-another/m-p/553251#M157059</link>
      <description>&lt;P&gt;Dear fellows,&lt;/P&gt;&lt;P&gt;I have two logs and i am looking to do some correlation between them.&lt;/P&gt;&lt;P&gt;In the log1, i am looking for IP_x (ex: 2.2.2.2)associated with IP_1 (1.1.1.1), then reuse the value of IP_x (2.2.2.2) in another search.&lt;/P&gt;&lt;P&gt;When i execute, i got nothing.&lt;/P&gt;&lt;P&gt;index=* sourcetype=log1 [search index=* sourcetype=log2&amp;nbsp; src_ip="1.1.1.1"&amp;nbsp;&lt;BR /&gt;| rex field=_raw "src-ip (?&amp;lt;src-ip&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})" | eval src_ip =src-ip | table src_ip ] src_ip&lt;/P&gt;&lt;P&gt;if i do this, i got the details&lt;/P&gt;&lt;P&gt;index=* sourcetype=log1 2.2.2.2&lt;/P&gt;&lt;P&gt;when i execute manually the search , i got the table with 2.2.2.2&lt;/P&gt;&lt;P&gt;search index=* sourcetype=log2&amp;nbsp; src_ip="1.1.1.1"&amp;nbsp;&lt;BR /&gt;| rex field=_raw "src-ip (?&amp;lt;src-ip&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})" | eval src_ip =src-ip | table src_ip&lt;/P&gt;&lt;P&gt;Any helps will be welcomed&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 07:27:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-store-a-value-from-rex-and-reuse-this-value-in-another/m-p/553251#M157059</guid>
      <dc:creator>silverem78</dc:creator>
      <dc:date>2021-05-27T07:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to store a value from rex and reuse this value in another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-store-a-value-from-rex-and-reuse-this-value-in-another/m-p/553259#M157062</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226572"&gt;@silverem78&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* sourcetype=log1 [search index=* sourcetype=log2  src_ip="1.1.1.1" 
| rex field=_raw "src-ip (?&amp;lt;src-ip&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})" | eval src_ip =src-ip | fields src_ip ] &lt;/LI-CODE&gt;&lt;P&gt;if doesn't works can you run this search and share the result?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;search index=* sourcetype=log2  src_ip="1.1.1.1" 
| rex field=_raw "src-ip (?&amp;lt;src-ip&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})" | eval src_ip =src-ip | table src_ip | fieldformat&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 27 May 2021 07:41:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-store-a-value-from-rex-and-reuse-this-value-in-another/m-p/553259#M157062</guid>
      <dc:creator>aasabatini</dc:creator>
      <dc:date>2021-05-27T07:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to store a value from rex and reuse this value in another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-store-a-value-from-rex-and-reuse-this-value-in-another/m-p/553262#M157063</link>
      <description>&lt;P&gt;I got an error with:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;search index=* sourcetype=log2  src_ip="1.1.1.1" 
| rex field=_raw "src-ip (?&amp;lt;src-ip&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})" | eval src_ip =src-ip | table src_ip | fieldformat&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got nothing&amp;nbsp; (with no error) :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* sourcetype=log1 [search index=* sourcetype=log2  src_ip="1.1.1.1" 
| rex field=_raw "src-ip (?&amp;lt;src-ip&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})" | eval src_ip =src-ip | fields src_ip ] &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; it is like "[search index=* sourcetype=log2 src_ip="1.1.1.1"&lt;BR /&gt;| rex field=_raw "src-ip (?&amp;lt;src-ip&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})" | eval src_ip =src-ip | fields src_ip ] " doesnt provide value. 2.2.2.2 ...&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 07:55:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-store-a-value-from-rex-and-reuse-this-value-in-another/m-p/553262#M157063</guid>
      <dc:creator>silverem78</dc:creator>
      <dc:date>2021-05-27T07:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to store a value from rex and reuse this value in another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-store-a-value-from-rex-and-reuse-this-value-in-another/m-p/553267#M157066</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226572"&gt;@silverem78&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry for the error try this search and please share the result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; index=* sourcetype=log2  src_ip="1.1.1.1" 
| rex field=_raw "src-ip (?&amp;lt;src-ip&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})" | eval src_ip =src-ip | table src_ip | format&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 08:24:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-store-a-value-from-rex-and-reuse-this-value-in-another/m-p/553267#M157066</guid>
      <dc:creator>aasabatini</dc:creator>
      <dc:date>2021-05-27T08:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to store a value from rex and reuse this value in another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-store-a-value-from-rex-and-reuse-this-value-in-another/m-p/553281#M157072</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got an error.&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 09:04:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-store-a-value-from-rex-and-reuse-this-value-in-another/m-p/553281#M157072</guid>
      <dc:creator>silverem78</dc:creator>
      <dc:date>2021-05-27T09:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to store a value from rex and reuse this value in another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-store-a-value-from-rex-and-reuse-this-value-in-another/m-p/553306#M157086</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226572"&gt;@silverem78&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share the error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 11:17:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-store-a-value-from-rex-and-reuse-this-value-in-another/m-p/553306#M157086</guid>
      <dc:creator>aasabatini</dc:creator>
      <dc:date>2021-05-27T11:17:13Z</dc:date>
    </item>
  </channel>
</rss>

