<?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: Create a Field Static Value Based on Rule in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Create-a-Field-Static-Value-Based-on-Rule/m-p/185585#M186994</link>
    <description>&lt;P&gt;Perfect. Calculated fields is where I needed to be pointed to. Got it working. &lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jan 2015 17:56:25 GMT</pubDate>
    <dc:creator>chrisboy68</dc:creator>
    <dc:date>2015-01-19T17:56:25Z</dc:date>
    <item>
      <title>Create a Field Static Value Based on Rule</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-a-Field-Static-Value-Based-on-Rule/m-p/185583#M186992</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I have a field called "Applications". I want to populate this field from events based on a patterns.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;date: xxxxxx&lt;/P&gt;

&lt;H2&gt;foobar&lt;/H2&gt;

&lt;P&gt;Based on the above example, I want to check for date:xxxxx followed by "foobar" and populate the field "Applications" with "MyApplcationName".&lt;/P&gt;

&lt;P&gt;How can I go about doing this?&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2015 20:55:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-a-Field-Static-Value-Based-on-Rule/m-p/185583#M186992</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2015-01-16T20:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Field Static Value Based on Rule</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-a-Field-Static-Value-Based-on-Rule/m-p/185584#M186993</link>
      <description>&lt;P&gt;You could do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere
| eval Applications=if(match(_raw,"date:xxxxx.*foobar"),"MyApplcationName",Applications)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You could even create a calculated field if you want this to be done automatically for every search.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2015 22:46:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-a-Field-Static-Value-Based-on-Rule/m-p/185584#M186993</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-01-16T22:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Field Static Value Based on Rule</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-a-Field-Static-Value-Based-on-Rule/m-p/185585#M186994</link>
      <description>&lt;P&gt;Perfect. Calculated fields is where I needed to be pointed to. Got it working. &lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jan 2015 17:56:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-a-Field-Static-Value-Based-on-Rule/m-p/185585#M186994</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2015-01-19T17:56:25Z</dc:date>
    </item>
  </channel>
</rss>

