<?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: Ticketing from Splunk: Can we have the search return verbiage based on the results to be used in a ticket? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Ticketing-from-Splunk-Can-we-have-the-search-return-verbiage/m-p/368762#M44591</link>
    <description>&lt;P&gt;You can definitely have such verbiage added to your search, but there's not just one way to do it.&lt;/P&gt;

&lt;P&gt;The most obvious seems to be a lookup of some sort, which can add a field to your events based on the value of one or more fields.&lt;/P&gt;

&lt;P&gt;Another option is a simple &lt;CODE&gt;case&lt;/CODE&gt; statement within your search, which might make it easy to perform string concatenation using your required variables:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| eval verbiage=case(connectionState!="connected" and virtualMachinesPoweredOnCount&amp;gt;0, "Virtual Machines Powered On. ESX Server " . name . " disconnected from the Virtual Center while " . vmcount . " virtual machines were running on it. Make sure that this server is running properly and is connected to the Virtual Center."&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 31 Dec 2017 17:33:47 GMT</pubDate>
    <dc:creator>micahkemp</dc:creator>
    <dc:date>2017-12-31T17:33:47Z</dc:date>
    <item>
      <title>Ticketing from Splunk: Can we have the search return verbiage based on the results to be used in a ticket?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Ticketing-from-Splunk-Can-we-have-the-search-return-verbiage/m-p/368761#M44590</link>
      <description>&lt;P&gt;We're using Splunk App for VMware to monitor and ticket our ESXi hosts &amp;amp; guests. We want to have helpful verbiage appear in the ticket based on the results of the alert search. Can we write that into a search instead of in the ticketing code?&lt;/P&gt;

&lt;P&gt;Alert: VMW ESX Server Disconnected&lt;/P&gt;

&lt;P&gt;Condition: return #connectionState# != "connected" &amp;amp;&amp;amp; #virtualMachinesPoweredOnCount# &amp;gt; 0&lt;/P&gt;

&lt;P&gt;Verbiage:&lt;BR /&gt;
Virtual Machines Powered On. ESX Server @name disconnected from the Virtual Center while @vmcount virtual machines were running on it. Make sure that this server is running properly and is connected to the Virtual Center.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2017 19:34:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Ticketing-from-Splunk-Can-we-have-the-search-return-verbiage/m-p/368761#M44590</guid>
      <dc:creator>sallyanntracy</dc:creator>
      <dc:date>2017-12-29T19:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Ticketing from Splunk: Can we have the search return verbiage based on the results to be used in a ticket?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Ticketing-from-Splunk-Can-we-have-the-search-return-verbiage/m-p/368762#M44591</link>
      <description>&lt;P&gt;You can definitely have such verbiage added to your search, but there's not just one way to do it.&lt;/P&gt;

&lt;P&gt;The most obvious seems to be a lookup of some sort, which can add a field to your events based on the value of one or more fields.&lt;/P&gt;

&lt;P&gt;Another option is a simple &lt;CODE&gt;case&lt;/CODE&gt; statement within your search, which might make it easy to perform string concatenation using your required variables:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| eval verbiage=case(connectionState!="connected" and virtualMachinesPoweredOnCount&amp;gt;0, "Virtual Machines Powered On. ESX Server " . name . " disconnected from the Virtual Center while " . vmcount . " virtual machines were running on it. Make sure that this server is running properly and is connected to the Virtual Center."&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Dec 2017 17:33:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Ticketing-from-Splunk-Can-we-have-the-search-return-verbiage/m-p/368762#M44591</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2017-12-31T17:33:47Z</dc:date>
    </item>
  </channel>
</rss>

