<?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: Add value on a column without csv input file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Add-value-on-a-column-without-csv-input-file/m-p/514446#M144385</link>
    <description>&lt;P&gt;Thanks !! It works&lt;/P&gt;&lt;P&gt;My code is also shorter !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a nice week&lt;/P&gt;</description>
    <pubDate>Mon, 17 Aug 2020 12:32:46 GMT</pubDate>
    <dc:creator>Lucie99</dc:creator>
    <dc:date>2020-08-17T12:32:46Z</dc:date>
    <item>
      <title>Add value on a column without csv input file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-value-on-a-column-without-csv-input-file/m-p/514430#M144375</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I need to put in these fix values on the Interval_tolerance column. Has somebody an idea ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10312i837C14DD0D14926D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 11:04:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-value-on-a-column-without-csv-input-file/m-p/514430#M144375</guid>
      <dc:creator>Lucie99</dc:creator>
      <dc:date>2020-08-17T11:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Add value on a column without csv input file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-value-on-a-column-without-csv-input-file/m-p/514434#M144379</link>
      <description>&lt;P&gt;Just do this in each of the sections of your search (replacing the ... by the respective value):&lt;/P&gt;&lt;P&gt;| eval Interval_tolerance = ...&lt;/P&gt;&lt;P&gt;Also, your search can be simplified a lot by doing both avg and stdev calculations in 1 go instead of the "appendcols"&lt;/P&gt;&lt;P&gt;| stats avg(Moy) as AV stdev(Moy) as SD by Debit&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 11:36:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-value-on-a-column-without-csv-input-file/m-p/514434#M144379</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2020-08-17T11:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Add value on a column without csv input file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-value-on-a-column-without-csv-input-file/m-p/514446#M144385</link>
      <description>&lt;P&gt;Thanks !! It works&lt;/P&gt;&lt;P&gt;My code is also shorter !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a nice week&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 12:32:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-value-on-a-column-without-csv-input-file/m-p/514446#M144385</guid>
      <dc:creator>Lucie99</dc:creator>
      <dc:date>2020-08-17T12:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Add value on a column without csv input file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-value-on-a-column-without-csv-input-file/m-p/514478#M144398</link>
      <description>&lt;P&gt;Looking at it once more, you can get rid of that whole "appends" approach, by simply removing the 'Debit=...' part from your search. Or replace it by Debit IN(a,b,c) if the data source contains other debit values which you want to ignore. Because the Debit field is the only thing that is different between the various appends bits, and you already do a 'by Debit' in your stats.&lt;/P&gt;&lt;P&gt;Then you can do the eval like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| eval Interval_tolerance = case(Debit=a,x,Debit=b,y,Debit=c,z)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 15:38:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-value-on-a-column-without-csv-input-file/m-p/514478#M144398</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2020-08-17T15:38:24Z</dc:date>
    </item>
  </channel>
</rss>

