<?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: Using Concatenated Fields for With Wildcards for Searching in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-Concatenated-Fields-for-With-Wildcards-for-Searching/m-p/603915#M210087</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235593"&gt;@pagnihot&lt;/a&gt;&amp;nbsp;- If you are taking user input in the dashboard you can add to search here provided by&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval input_ip=$user_input_tkn|s$

| rex field=input_ip "^\d+\.\d+\.(?&amp;lt;input_ip_check&amp;gt;\d+\.\d+)"
| rex field=src_ip "^\d+\.\d+\.(?&amp;lt;src_ip_check&amp;gt;\d+\.\d+)"
| search input_ip_check=input_ip_check&lt;/LI-CODE&gt;&lt;P&gt;Where&amp;nbsp;&lt;STRONG&gt;user_input_tkn&lt;/STRONG&gt; is the token for your user input in the dashboard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jun 2022 09:19:32 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2022-06-30T09:19:32Z</dc:date>
    <item>
      <title>Using Concatenated Fields for With Wildcards for Searching</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Concatenated-Fields-for-With-Wildcards-for-Searching/m-p/603909#M210085</link>
      <description>&lt;P&gt;Hey Community&lt;/P&gt;&lt;P&gt;Need guidance with below scenario.&lt;BR /&gt;A user will provide an IP address as input. I want that last two octets of the input IP should be compared with the last two octets of the Source IP field and the matched results should be returned.&lt;/P&gt;&lt;P&gt;For example&amp;nbsp;&lt;/P&gt;&lt;P&gt;input_ip="1.2.3.4"&lt;/P&gt;&lt;P&gt;src_ip="4.5.3.4"&lt;BR /&gt;&lt;BR /&gt;This should returns the results as the last two octets are matching.&lt;/P&gt;&lt;P&gt;I have tried replace first two octets with * using regex and strcat however, it doesn't works for me.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 09:00:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Concatenated-Fields-for-With-Wildcards-for-Searching/m-p/603909#M210085</guid>
      <dc:creator>pagnihot</dc:creator>
      <dc:date>2022-06-30T09:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using Concatenated Fields for With Wildcards for Searching</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Concatenated-Fields-for-With-Wildcards-for-Searching/m-p/603911#M210086</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235593"&gt;@pagnihot&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you could try to extract the last two octets from both the fields using regexes and check the results, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=input_ip "^\d+\.\d+\.(?&amp;lt;input_ip_check&amp;gt;\d+\.\d+)"
| rex field=src_ip "^\d+\.\d+\.(?&amp;lt;src_ip_check&amp;gt;\d+\.\d+)"
| search input_ip_check=input_ip_check&lt;/LI-CODE&gt;&lt;P&gt;this is an approach that you can adapt to your real situation (e.g. input_ip is a token from an input?).&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 09:06:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Concatenated-Fields-for-With-Wildcards-for-Searching/m-p/603911#M210086</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-06-30T09:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using Concatenated Fields for With Wildcards for Searching</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Concatenated-Fields-for-With-Wildcards-for-Searching/m-p/603915#M210087</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235593"&gt;@pagnihot&lt;/a&gt;&amp;nbsp;- If you are taking user input in the dashboard you can add to search here provided by&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval input_ip=$user_input_tkn|s$

| rex field=input_ip "^\d+\.\d+\.(?&amp;lt;input_ip_check&amp;gt;\d+\.\d+)"
| rex field=src_ip "^\d+\.\d+\.(?&amp;lt;src_ip_check&amp;gt;\d+\.\d+)"
| search input_ip_check=input_ip_check&lt;/LI-CODE&gt;&lt;P&gt;Where&amp;nbsp;&lt;STRONG&gt;user_input_tkn&lt;/STRONG&gt; is the token for your user input in the dashboard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 09:19:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Concatenated-Fields-for-With-Wildcards-for-Searching/m-p/603915#M210087</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-06-30T09:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using Concatenated Fields for With Wildcards for Searching</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Concatenated-Fields-for-With-Wildcards-for-Searching/m-p/603933#M210095</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/93915"&gt;@VatsalJagani&lt;/a&gt;&lt;/P&gt;&lt;P&gt;This works for me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 10:00:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Concatenated-Fields-for-With-Wildcards-for-Searching/m-p/603933#M210095</guid>
      <dc:creator>pagnihot</dc:creator>
      <dc:date>2022-06-30T10:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using Concatenated Fields for With Wildcards for Searching</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Concatenated-Fields-for-With-Wildcards-for-Searching/m-p/603936#M210097</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235593"&gt;@pagnihot&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I'm a Splunk Community Moderator here. Generally, you accept the answer as a solution which answer really helped you resolve the issue. So community users in the future can get the right guidance easily.&lt;/P&gt;&lt;P&gt;You can do that by clicking on the "Accept as Solution" button under the correct answer.&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 10:04:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Concatenated-Fields-for-With-Wildcards-for-Searching/m-p/603936#M210097</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-06-30T10:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using Concatenated Fields for With Wildcards for Searching</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Concatenated-Fields-for-With-Wildcards-for-Searching/m-p/603938#M210099</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235593"&gt;@pagnihot&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;it's not so clear what's the solution ok for you, I say this for the people that will read your question!&lt;/P&gt;&lt;P&gt;Anyway,&amp;nbsp;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 10:04:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Concatenated-Fields-for-With-Wildcards-for-Searching/m-p/603938#M210099</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-06-30T10:04:29Z</dc:date>
    </item>
  </channel>
</rss>

