<?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: not editable fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149627#M185482</link>
    <description>&lt;P&gt;Ok without problem but see my new answer above&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jun 2015 10:05:22 GMT</pubDate>
    <dc:creator>chimell</dc:creator>
    <dc:date>2015-06-30T10:05:22Z</dc:date>
    <item>
      <title>not editable fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149615#M185470</link>
      <description>&lt;P&gt;hi everybody,&lt;/P&gt;

&lt;P&gt;i'm try to conserve content field value but i don't understand how i can.&lt;/P&gt;

&lt;P&gt;in my search :&lt;BR /&gt;
index=A OR index=B&lt;BR /&gt;
initial : field1 is here&lt;BR /&gt;
&amp;lt;here i'm using filtering with regex and dbquery&amp;gt;&lt;BR /&gt;
after that i get filtered (field1) = field2&lt;BR /&gt;
but if i want to reuse the initial value of field1 i should to use join or append [index=A OR index=B field1]&lt;BR /&gt;
how can i reuse the initial field1 without join or append.&lt;/P&gt;

&lt;P&gt;ps : i tryed to use eval newfield=field1 but it don't work the newfield does not remain as it is&lt;BR /&gt;
i'm thinking about kvstore but if i can use a special commands it will be great &lt;BR /&gt;
thx &lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 10:29:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149615#M185470</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2015-06-12T10:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: not editable fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149616#M185471</link>
      <description>&lt;P&gt;Hello! The only way to use the initial value of &lt;STRONG&gt;field1&lt;/STRONG&gt; it is to use the &lt;STRONG&gt;eval&lt;/STRONG&gt; or a &lt;STRONG&gt;subsearch&lt;/STRONG&gt;.&lt;BR /&gt;
And if you use &lt;STRONG&gt;eval&lt;/STRONG&gt;, do something like this: &lt;CODE&gt;|eval newfield=field1&lt;/CODE&gt;, and not &lt;CODE&gt;|aval field1=newfield&lt;/CODE&gt;, because it will change the initial value of &lt;STRONG&gt;field1&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 10:49:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149616#M185471</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-06-12T10:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: not editable fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149617#M185472</link>
      <description>&lt;P&gt;i use |eval newfield=field1 but newifield change where is aval ????&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 10:56:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149617#M185472</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2015-06-12T10:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: not editable fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149618#M185473</link>
      <description>&lt;P&gt;I do not know if I've understood very well your problem. &lt;STRONG&gt;field1&lt;/STRONG&gt; is not the field you want to reuse? Because &lt;CODE&gt;|eval newfield=field1&lt;/CODE&gt; will not change de value of &lt;STRONG&gt;field1&lt;/STRONG&gt;, But the value of &lt;STRONG&gt;newfield&lt;/STRONG&gt; will be the value of &lt;STRONG&gt;field1&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 11:05:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149618#M185473</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-06-12T11:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: not editable fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149619#M185474</link>
      <description>&lt;P&gt;but i want to conserve the integral values in my new fields&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 12:43:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149619#M185474</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2015-06-12T12:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: not editable fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149620#M185475</link>
      <description>&lt;P&gt;That is what you have to know. If you want to reuse the initial value of a field in your search query, do not assign to that field a value, before the use of the field. For example:&lt;BR /&gt;
Let suppose that you have a field named field1, and that, initially  field1=10.&lt;BR /&gt;
Then in your search query, if you do something like this: &lt;CODE&gt;...|eval field1=50|eval field2=field1+5|table field1 field2&lt;/CODE&gt;&lt;BR /&gt;
result:&lt;/P&gt;

&lt;P&gt;field1  field2&lt;BR /&gt;
  50                   55&lt;/P&gt;

&lt;P&gt;As you can see, the initial value of field1 has change, and that is why field2=55.&lt;/P&gt;

&lt;P&gt;But if you do like this: &lt;CODE&gt;...|eval field2=field1|eval field3=field1+5|table field1 field2 field3&lt;/CODE&gt;&lt;BR /&gt;
result: &lt;BR /&gt;
 field1  field2  field3&lt;BR /&gt;
    10                 10        15&lt;BR /&gt;
Here the initial value of field1 did not change, and t that is why you have field3=15&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 14:18:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149620#M185475</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-06-12T14:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: not editable fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149621#M185476</link>
      <description>&lt;P&gt;i just want to reuse a field as it was before being filtered&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 07:31:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149621#M185476</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2015-06-30T07:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: not editable fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149622#M185477</link>
      <description>&lt;P&gt;Hi  sfatnass&lt;/P&gt;

&lt;P&gt;Retry with multisearch command which  Run multiple searches at the same time.&lt;BR /&gt;
See it syntax&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| multisearch &amp;lt;subsearch1&amp;gt; &amp;lt;subsearch2&amp;gt; &amp;lt;subsearch3&amp;gt; ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For you case try to use&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|multisearch [search index=A OR index=B |eval field1=field2][search index=A OR index=B |fields field1]............
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Tell if it works like you want&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 08:37:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149622#M185477</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2015-06-30T08:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: not editable fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149623#M185478</link>
      <description>&lt;P&gt;chimell the index A can't match with index B&lt;/P&gt;

&lt;P&gt;for index A i have a field and i try to get a newfield like&lt;BR /&gt;
|eval newfieldA=fieldA&lt;/P&gt;

&lt;P&gt;the fieldA will be filtered by many dbquery&lt;BR /&gt;
but i want to reuse newfieldA like it was before filtering.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 08:42:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149623#M185478</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2015-06-30T08:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: not editable fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149624#M185479</link>
      <description>&lt;P&gt;Can you show me your search code ?&lt;BR /&gt;
field1 below to which index ?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 09:25:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149624#M185479</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2015-06-30T09:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: not editable fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149625#M185480</link>
      <description>&lt;P&gt;oh sorry i can't show you my code it's not public values&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 09:29:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149625#M185480</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2015-06-30T09:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: not editable fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149626#M185481</link>
      <description>&lt;P&gt;Could you please post the regex you are using ? are you applying the regex on the raw data ? because if thats the case even if you recreate the field it would still get modified.. make sure you apply it on the specific field. &lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 09:35:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149626#M185481</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2015-06-30T09:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: not editable fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149627#M185482</link>
      <description>&lt;P&gt;Ok without problem but see my new answer above&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 10:05:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-editable-fields/m-p/149627#M185482</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2015-06-30T10:05:22Z</dc:date>
    </item>
  </channel>
</rss>

