<?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 calculate and add missing field to source? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-and-add-missing-field-to-source/m-p/427881#M172567</link>
    <description>&lt;P&gt;Thanks @richgalloway. I thought enough to do that, but my mistake was not carrying the by clause to the end. Makes sense to me now. Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2019 12:22:40 GMT</pubDate>
    <dc:creator>user93</dc:creator>
    <dc:date>2019-03-12T12:22:40Z</dc:date>
    <item>
      <title>How to calculate and add missing field to source?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-and-add-missing-field-to-source/m-p/427877#M172563</link>
      <description>&lt;P&gt;source A : filename,title,version,type,date&lt;BR /&gt;
source B: filename,date&lt;/P&gt;

&lt;P&gt;I want to compute the title field for source b and output that into my data where the file name has the same value for source A and B.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Goal:  source=b | table _time,filename,title
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where source b does not include the title in the _raw but source a has the same filename and also includes title in the _raw.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 17:09:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-and-add-missing-field-to-source/m-p/427877#M172563</guid>
      <dc:creator>user93</dc:creator>
      <dc:date>2019-03-11T17:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate and add missing field to source?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-and-add-missing-field-to-source/m-p/427878#M172564</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(source=A OR source=B) | stats latest(_time) as _time, latest(title) as title by filename | table _time, filename, title
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Mar 2019 17:26:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-and-add-missing-field-to-source/m-p/427878#M172564</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-03-11T17:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate and add missing field to source?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-and-add-missing-field-to-source/m-p/427879#M172565</link>
      <description>&lt;P&gt;This works, but what I really want is for the events to become a new field in the search, because now I cannot add other fields lost to the stats pipe.  For example, I want: | table _time,filename,title,version,w_day&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:36:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-and-add-missing-field-to-source/m-p/427879#M172565</guid>
      <dc:creator>user93</dc:creator>
      <dc:date>2020-09-29T23:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate and add missing field to source?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-and-add-missing-field-to-source/m-p/427880#M172566</link>
      <description>&lt;P&gt;To avoid losing fields to &lt;CODE&gt;stats&lt;/CODE&gt;, include them in &lt;CODE&gt;stats&lt;/CODE&gt;.  &lt;CODE&gt;... | stats latest(_time) as _time, latest(title) as title latest(version) as version, latest(w_day) as w_day by filename | ...&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 11:59:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-and-add-missing-field-to-source/m-p/427880#M172566</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-03-12T11:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate and add missing field to source?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-and-add-missing-field-to-source/m-p/427881#M172567</link>
      <description>&lt;P&gt;Thanks @richgalloway. I thought enough to do that, but my mistake was not carrying the by clause to the end. Makes sense to me now. Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 12:22:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-and-add-missing-field-to-source/m-p/427881#M172567</guid>
      <dc:creator>user93</dc:creator>
      <dc:date>2019-03-12T12:22:40Z</dc:date>
    </item>
  </channel>
</rss>

