<?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: case command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/case-command/m-p/364915#M107640</link>
    <description>&lt;P&gt;field name type and value is abc&lt;/P&gt;</description>
    <pubDate>Tue, 20 Mar 2018 06:34:00 GMT</pubDate>
    <dc:creator>DataOrg</dc:creator>
    <dc:date>2018-03-20T06:34:00Z</dc:date>
    <item>
      <title>case command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/case-command/m-p/364911#M107636</link>
      <description>&lt;P&gt;i want case command to match case where abc = hhh and after word should be same as present as it is&lt;BR /&gt;
abc&lt;BR /&gt;
abc&lt;BR /&gt;
efg&lt;BR /&gt;
ffh&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 05:48:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/case-command/m-p/364911#M107636</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2018-03-20T05:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: case command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/case-command/m-p/364912#M107637</link>
      <description>&lt;P&gt;@premranjithj, your question is not clear, please elaborate and add as much information as possible. What is the data you have (mock/dummy) along with field name? Also what is the query you have tried so far?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 06:08:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/case-command/m-p/364912#M107637</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-20T06:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: case command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/case-command/m-p/364913#M107638</link>
      <description>&lt;P&gt;i have list of fields&lt;BR /&gt;
1.abc&lt;BR /&gt;
2.bbc&lt;BR /&gt;
3.abc&lt;BR /&gt;
4.ggh&lt;BR /&gt;
5.usb&lt;/P&gt;

&lt;P&gt;if i a field has value abc its should be replaced with 123. other fields can have the data as it is.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 06:18:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/case-command/m-p/364913#M107638</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2018-03-20T06:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: case command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/case-command/m-p/364914#M107639</link>
      <description>&lt;P&gt;Is the field name abc or the value of the field abc? If it is second case what is the field name?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 06:27:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/case-command/m-p/364914#M107639</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-20T06:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: case command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/case-command/m-p/364915#M107640</link>
      <description>&lt;P&gt;field name type and value is abc&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 06:34:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/case-command/m-p/364915#M107640</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2018-03-20T06:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: case command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/case-command/m-p/364916#M107641</link>
      <description>&lt;P&gt;&lt;STRONG&gt;[Updated Answer]&lt;/STRONG&gt;&lt;BR /&gt;
With exact match and run anywhere search query&lt;/P&gt;

&lt;P&gt;Ok then you need the following to be added to your existing search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval type="abc,xyzabc,abcdef,xyzabcdef"
| makemv type delim="," 
| mvexpand type
| replace "abc" with "123" in type
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or else&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval type="abc,xyzabc,abcdef,xyzabcdef"
| makemv type delim="," 
| mvexpand type
| eval type=replace(type,"^abc$","123")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Mar 2018 08:03:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/case-command/m-p/364916#M107641</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-20T08:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: case command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/case-command/m-p/364917#M107642</link>
      <description>&lt;P&gt;| eval type=replace(type,"abc","123")&lt;/P&gt;

&lt;P&gt;this condition replaces all the pattern with abc. i want only with exact match "abc".&lt;/P&gt;

&lt;P&gt;for example if fields value with "abcefg" it matches and getting replaced with 123&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 10:24:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/case-command/m-p/364917#M107642</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2018-03-20T10:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: case command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/case-command/m-p/364918#M107643</link>
      <description>&lt;P&gt;So try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval type=replace(type,"^abc$","123")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can also try as per previous comment.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| replace "abc" with "123" in type
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Mar 2018 13:29:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/case-command/m-p/364918#M107643</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-20T13:29:09Z</dc:date>
    </item>
  </channel>
</rss>

