<?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: Why does my search return results as expected, but saving the same search as an alert does not return all data fields? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Why-does-my-search-return-results-as-expected-but-saving-the/m-p/274430#M5037</link>
    <description>&lt;P&gt;You can try by updating your query as follows:&lt;/P&gt;

&lt;P&gt;Provide fieldname= * at starting of  your query which you are using as chart or stats at the end. I think saved search is by default running in fast mode.&lt;/P&gt;

&lt;P&gt;If the above is not working then try the following property in savedsearches.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;action.email.maxresults = &amp;lt;integer&amp;gt;
 * Set the maximum number of results to be emailed.
 * Any alert-level results threshold greater than this number will be capped at
   this level.
 * This value affects all methods of result inclusion by email alert: inline,
   CSV and PDF.
 * Note that this setting is affected globally by "maxresults" in the [email]
   stanza of alert_actions.conf.
 * Defaults to 10000
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 08 Dec 2016 11:32:26 GMT</pubDate>
    <dc:creator>nisu</dc:creator>
    <dc:date>2016-12-08T11:32:26Z</dc:date>
    <item>
      <title>Why does my search return results as expected, but saving the same search as an alert does not return all data fields?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-does-my-search-return-results-as-expected-but-saving-the/m-p/274429#M5036</link>
      <description>&lt;P&gt;So when I perform a search using criteria that I want, it works. If I export those results to a CSV, I am given ALL of the data fields (which is what I want). However when I then save this search as an alert, then that alert is triggered, I have it email a CSV of the results. However that CSV is missing 75% of the data fields. The results are exactly the same as the search, just missing many columns of data that I need.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 02:24:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-does-my-search-return-results-as-expected-but-saving-the/m-p/274429#M5036</guid>
      <dc:creator>susenstoob</dc:creator>
      <dc:date>2016-12-08T02:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my search return results as expected, but saving the same search as an alert does not return all data fields?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-does-my-search-return-results-as-expected-but-saving-the/m-p/274430#M5037</link>
      <description>&lt;P&gt;You can try by updating your query as follows:&lt;/P&gt;

&lt;P&gt;Provide fieldname= * at starting of  your query which you are using as chart or stats at the end. I think saved search is by default running in fast mode.&lt;/P&gt;

&lt;P&gt;If the above is not working then try the following property in savedsearches.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;action.email.maxresults = &amp;lt;integer&amp;gt;
 * Set the maximum number of results to be emailed.
 * Any alert-level results threshold greater than this number will be capped at
   this level.
 * This value affects all methods of result inclusion by email alert: inline,
   CSV and PDF.
 * Note that this setting is affected globally by "maxresults" in the [email]
   stanza of alert_actions.conf.
 * Defaults to 10000
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Dec 2016 11:32:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-does-my-search-return-results-as-expected-but-saving-the/m-p/274430#M5037</guid>
      <dc:creator>nisu</dc:creator>
      <dc:date>2016-12-08T11:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my search return results as expected, but saving the same search as an alert does not return all data fields?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-does-my-search-return-results-as-expected-but-saving-the/m-p/274431#M5038</link>
      <description>&lt;P&gt;Thanks Nisu, tried your first suggestion, but then the search returns 0 results. Also, just FYI, I have tried both fast mode and verbose mode. The search works the same in both fashions, and then the emailed report again is still missing many fields.&lt;/P&gt;

&lt;P&gt;Tried your 2nd suggestion, again no change. Though I believe that is only to change the amount of results, my search and report is no where close to 10k.&lt;/P&gt;

&lt;P&gt;Any other ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 16:44:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-does-my-search-return-results-as-expected-but-saving-the/m-p/274431#M5038</guid>
      <dc:creator>susenstoob</dc:creator>
      <dc:date>2016-12-08T16:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my search return results as expected, but saving the same search as an alert does not return all data field</title>
      <link>https://community.splunk.com/t5/Alerting/Why-does-my-search-return-results-as-expected-but-saving-the/m-p/627531#M14667</link>
      <description>&lt;P&gt;Saved searches have a different behavior than ad hoc searches in that they only return requested fields. You need to explicitly state what fields you want returned with the &lt;A title="fieldsCommand" href="https://docs.splunk.com/Documentation/SCS/current/SearchReference/FieldsCommandOverview" target="_self"&gt;fields&lt;/A&gt; command. Alternatively, you can use the command to return all fields:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your search string&amp;gt; | fields *&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 22:16:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-does-my-search-return-results-as-expected-but-saving-the/m-p/627531#M14667</guid>
      <dc:creator>amgibby</dc:creator>
      <dc:date>2023-01-18T22:16:45Z</dc:date>
    </item>
  </channel>
</rss>

