<?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 can I have the hostname included in a scheduled Splunk report? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398023#M174484</link>
    <description>&lt;P&gt;@akocak I appreciate your help.  That didn't work; it just left the myhost_raw column blank on the .pdf file.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Nov 2018 20:48:10 GMT</pubDate>
    <dc:creator>dkr3500</dc:creator>
    <dc:date>2018-11-21T20:48:10Z</dc:date>
    <item>
      <title>How can I have the hostname included in a scheduled Splunk report?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398014#M174475</link>
      <description>&lt;P&gt;Splunk Enterprise 6.5.3&lt;/P&gt;

&lt;P&gt;I have created a report to email me a .pdf .  However, the report does not include the hostnames of the servers that it is reporting on.&lt;/P&gt;

&lt;P&gt;I am using the following search regex: index=dba host=&lt;EM&gt;db5&lt;/EM&gt; "Error" OR "Warning" OR "Note"&lt;BR /&gt;
And it shows host=sdb5 in the selected fields, as well as in the area immediately beneath the log data, but the host (hostname) will not appear in the report that is generated via an email. I only get the timestamp and the event (actual log data).&lt;/P&gt;

&lt;P&gt;Is there a way to ensure that the hostname is included as part of the report?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 20:26:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398014#M174475</guid>
      <dc:creator>dkr3500</dc:creator>
      <dc:date>2018-11-19T20:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I have the hostname included in a scheduled Splunk report?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398015#M174476</link>
      <description>&lt;P&gt;It sounds like you're sending raw event data. If that is the case and that is what you're going for then you can still dump it into a table.&lt;BR /&gt;
    | table _time host _raw&lt;BR /&gt;
or&lt;BR /&gt;
    | fields _time host _raw&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 21:44:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398015#M174476</guid>
      <dc:creator>anthonymelita</dc:creator>
      <dc:date>2018-11-19T21:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I have the hostname included in a scheduled Splunk report?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398016#M174477</link>
      <description>&lt;P&gt;Thank you @anthonymelita .  Your regex did help when I do "Inline" (table drop-down); it showed the timestamp, hostname, and event in the text of the email it sends out, but there were no changes to the .pdf that is attached - which is really what I need.  Is there a way to make the .pdf show the hostname?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 22:22:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398016#M174477</guid>
      <dc:creator>dkr3500</dc:creator>
      <dc:date>2018-11-19T22:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I have the hostname included in a scheduled Splunk report?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398017#M174478</link>
      <description>&lt;P&gt;You should see your host in the PDF with following, I am more concerned for your _time variable that you would need to use "|fieldformat" command to make it human readable.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=dba host=db5 ("Error" OR "Warning" OR "Note" )
| table _time host _raw
| fieldformat _time = strftime(_time, "%Y-%m-%d %H:%M:%S") 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Nov 2018 22:32:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398017#M174478</guid>
      <dc:creator>akocak</dc:creator>
      <dc:date>2018-11-19T22:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I have the hostname included in a scheduled Splunk report?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398018#M174479</link>
      <description>&lt;P&gt;BTW, Splunk searches called SPL, regex is a different world. &lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 22:32:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398018#M174479</guid>
      <dc:creator>akocak</dc:creator>
      <dc:date>2018-11-19T22:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I have the hostname included in a scheduled Splunk report?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398019#M174480</link>
      <description>&lt;P&gt;Hello @akocak thank you for your help.  I have tried your SPL - it is still not showing the host field in the attached .pdf .  I have been getting the same table it has the _time column and the _raw column.&lt;/P&gt;

&lt;P&gt;Is there anything else I can do?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 15:07:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398019#M174480</guid>
      <dc:creator>dkr3500</dc:creator>
      <dc:date>2018-11-20T15:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I have the hostname included in a scheduled Splunk report?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398020#M174481</link>
      <description>&lt;P&gt;can you paste what you see in results ? I am not sure what is the issue. &lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 15:46:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398020#M174481</guid>
      <dc:creator>akocak</dc:creator>
      <dc:date>2018-11-20T15:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I have the hostname included in a scheduled Splunk report?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398021#M174482</link>
      <description>&lt;P&gt;&lt;A href="https://imgur.com/a/KCotoq0"&gt;https://imgur.com/a/KCotoq0&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://imgur.com/a/sjxkd6S"&gt;https://imgur.com/a/sjxkd6S&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 21:44:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398021#M174482</guid>
      <dc:creator>dkr3500</dc:creator>
      <dc:date>2018-11-20T21:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I have the hostname included in a scheduled Splunk report?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398022#M174483</link>
      <description>&lt;P&gt;interesting, try this :&lt;BR /&gt;
    ....&lt;BR /&gt;
    | eval myhost=host&lt;BR /&gt;
     | table _time myhost_raw&lt;BR /&gt;
    ...&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:06:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398022#M174483</guid>
      <dc:creator>akocak</dc:creator>
      <dc:date>2020-09-29T22:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I have the hostname included in a scheduled Splunk report?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398023#M174484</link>
      <description>&lt;P&gt;@akocak I appreciate your help.  That didn't work; it just left the myhost_raw column blank on the .pdf file.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 20:48:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398023#M174484</guid>
      <dc:creator>dkr3500</dc:creator>
      <dc:date>2018-11-21T20:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I have the hostname included in a scheduled Splunk report?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398024#M174485</link>
      <description>&lt;P&gt;From Splunk support:&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;I was able to confirm the same thing from the reports I received in my inbox. The 'host' field was in the body of the email, but the attached PDF report was cut off and did not include the 'host' field in the table. I talked to a few engineers here on my side, and this is a known issue that the PDF generator within Splunk does not work completely well especially on large outputs. Also, there is a known bug&lt;BR /&gt;
when a field name contains extra whitespace in the beginning or the end, pdf export fails for that column. This issue is fixed in versions 7.0.3 and above. If upgrading Splunk is not an option, we recommend that users export to a CSV for better results and/or use the following PDF generator work arounds:&lt;/P&gt;

&lt;P&gt;Take a look at following tools to build similar functionality that is not dependent on the pdf generator: &lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/kalink0/alert_send_screenshot"&gt;https://github.com/kalink0/alert_send_screenshot&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;Katalon Suite is generally used for web UI automation testing, but can be used via the command line to take dashboard screenshots.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.katalon.com"&gt;https://www.katalon.com&lt;/A&gt; (&lt;A href="https://www.katalon.com/"&gt;https://www.katalon.com/&lt;/A&gt;) &lt;/P&gt;

&lt;HR /&gt;</description>
      <pubDate>Tue, 11 Dec 2018 17:49:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-have-the-hostname-included-in-a-scheduled-Splunk/m-p/398024#M174485</guid>
      <dc:creator>dkr3500</dc:creator>
      <dc:date>2018-12-11T17:49:46Z</dc:date>
    </item>
  </channel>
</rss>

