<?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 automatically calculate an eval expression? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-calculate-an-eval-expression/m-p/131948#M35985</link>
    <description>&lt;P&gt;define it in props.conf&lt;/P&gt;</description>
    <pubDate>Sun, 31 May 2015 13:26:28 GMT</pubDate>
    <dc:creator>kheli</dc:creator>
    <dc:date>2015-05-31T13:26:28Z</dc:date>
    <item>
      <title>How to automatically calculate an eval expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-calculate-an-eval-expression/m-p/131947#M35984</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;
I use the following eval expression to convert epoch time to human readable format when I search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval formatted_time=strftime(old_time/1000, "%H:%M:%S %d-%m-%Y")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;*old_time = time in epoch format.&lt;/P&gt;

&lt;P&gt;Is it possible to do it permanent ?&lt;BR /&gt;
I mean- To calculation it automatically and not use all the time with the above search  ?&lt;/P&gt;</description>
      <pubDate>Sun, 31 May 2015 11:22:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-calculate-an-eval-expression/m-p/131947#M35984</guid>
      <dc:creator>bugnet</dc:creator>
      <dc:date>2015-05-31T11:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically calculate an eval expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-calculate-an-eval-expression/m-p/131948#M35985</link>
      <description>&lt;P&gt;define it in props.conf&lt;/P&gt;</description>
      <pubDate>Sun, 31 May 2015 13:26:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-calculate-an-eval-expression/m-p/131948#M35985</guid>
      <dc:creator>kheli</dc:creator>
      <dc:date>2015-05-31T13:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically calculate an eval expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-calculate-an-eval-expression/m-p/131949#M35986</link>
      <description>&lt;P&gt;Yes, Splunk supports this via a feature called "calculated fields" in props.conf. To do this for a source type called my_custom it would look like this&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[my_custom]&lt;BR /&gt;
EVAL-formatted_time=strftime(old_time/1000, "%H:%M:%S %d-%m-%Y")&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 31 May 2015 16:31:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-calculate-an-eval-expression/m-p/131949#M35986</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2015-05-31T16:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically calculate an eval expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-calculate-an-eval-expression/m-p/131950#M35987</link>
      <description>&lt;P&gt;you can also find it in the UI under fields &amp;gt; calculated fields.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2015 05:58:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-calculate-an-eval-expression/m-p/131950#M35987</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2015-06-01T05:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically calculate an eval expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-calculate-an-eval-expression/m-p/131951#M35988</link>
      <description>&lt;P&gt;I tried to set it under $SPLUNK_HOME/etc/apps/search/local/props.conf  but no works for me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 07:10:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-calculate-an-eval-expression/m-p/131951#M35988</guid>
      <dc:creator>bugnet</dc:creator>
      <dc:date>2015-06-03T07:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically calculate an eval expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-calculate-an-eval-expression/m-p/131952#M35989</link>
      <description>&lt;P&gt;@bugnet, what does the props look like? You may want to implement it in the UI per yannK's comments (In "Settings" menu).&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 07:51:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-automatically-calculate-an-eval-expression/m-p/131952#M35989</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2015-06-03T07:51:22Z</dc:date>
    </item>
  </channel>
</rss>

