<?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 trim output in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109622#M7779</link>
    <description>&lt;P&gt;Thank you ....&lt;/P&gt;

&lt;P&gt;Yes... It is working fine&lt;/P&gt;

&lt;P&gt;can we concatenate that domain &amp;amp; status together? &lt;/P&gt;</description>
    <pubDate>Wed, 13 May 2015 16:16:08 GMT</pubDate>
    <dc:creator>marees123</dc:creator>
    <dc:date>2015-05-13T16:16:08Z</dc:date>
    <item>
      <title>how to trim output</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109618#M7775</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;

&lt;P&gt;i'm getting the below output in my search (index=LB example.domain.com* "monitor status *")&lt;/P&gt;

&lt;P&gt;May 4 20:16:05 netloadBalance_1a notice mcpd[7457]: 01070727:5: Pool /Common/example.domain.com member /Common/192.168.2.24:443 monitor status up. [ /Common/tcp_443: up ] [ was up for 55hrs:23mins:26sec ]&lt;/P&gt;

&lt;P&gt;i would like to get the output like &lt;/P&gt;

&lt;P&gt;example.domain.com 192.168.2.24:443 monitor status up&lt;/P&gt;

&lt;P&gt;please advise&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 14:29:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109618#M7775</guid>
      <dc:creator>marees123</dc:creator>
      <dc:date>2015-05-13T14:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim output</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109619#M7776</link>
      <description>&lt;P&gt;This should do the trick.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=LB example.domain.com* "monitor status *" | rex "\/Common\/(?P&amp;lt;domain&amp;gt;[^ ]+).*\/(?P&amp;lt;status&amp;gt;[\d\.:]+ monitor status \w+\.)" | table domain status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Replace &lt;CODE&gt;"&amp;amp;lt;"&lt;/CODE&gt; and &lt;CODE&gt;"&amp;amp;gt;"&lt;/CODE&gt; with "&amp;lt;" and "&amp;gt;", respectively.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 15:12:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109619#M7776</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-05-13T15:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim output</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109620#M7777</link>
      <description>&lt;P&gt;Thank you Richgalloway,&lt;/P&gt;

&lt;P&gt;im getting the second output... 192.168.2.24:443 monitor status up&lt;/P&gt;

&lt;P&gt;need to get the first output also which is the url name, like....&lt;/P&gt;

&lt;P&gt;example.domain.com 192.168.2.24:443 monitor status up&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 15:54:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109620#M7777</guid>
      <dc:creator>marees123</dc:creator>
      <dc:date>2015-05-13T15:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim output</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109621#M7778</link>
      <description>&lt;P&gt;I've updated my answer.  You may need to adjust the regex depending on if "/Common/" is a fixed string or not.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 16:07:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109621#M7778</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-05-13T16:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim output</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109622#M7779</link>
      <description>&lt;P&gt;Thank you ....&lt;/P&gt;

&lt;P&gt;Yes... It is working fine&lt;/P&gt;

&lt;P&gt;can we concatenate that domain &amp;amp; status together? &lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 16:16:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109622#M7779</guid>
      <dc:creator>marees123</dc:creator>
      <dc:date>2015-05-13T16:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim output</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109623#M7780</link>
      <description>&lt;P&gt;Certainly.  Just use an eval like this &lt;CODE&gt;eval foo=domain+" "+status&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 16:18:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109623#M7780</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-05-13T16:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim output</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109624#M7781</link>
      <description>&lt;P&gt;Sorry Richgalloway... &lt;/P&gt;

&lt;P&gt;where do i need to insert this command... i'm poor in quries...&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 16:28:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109624#M7781</guid>
      <dc:creator>marees123</dc:creator>
      <dc:date>2015-05-13T16:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim output</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109625#M7782</link>
      <description>&lt;P&gt;Put it before the table command then change the table command to &lt;CODE&gt;table foo&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 16:31:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109625#M7782</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-05-13T16:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim output</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109626#M7783</link>
      <description>&lt;P&gt;you are awesome...&lt;/P&gt;

&lt;P&gt;thanks a lot.. its working perfectly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 16:33:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109626#M7783</guid>
      <dc:creator>marees123</dc:creator>
      <dc:date>2015-05-13T16:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim output</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109627#M7784</link>
      <description>&lt;P&gt;Great!  Please accept the answer.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 16:35:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109627#M7784</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-05-13T16:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim output</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109628#M7785</link>
      <description>&lt;P&gt;Hi Richgalloway&lt;/P&gt;

&lt;P&gt;Sorry....&lt;/P&gt;

&lt;P&gt;what we need to do to display like a below sentence... &lt;/P&gt;

&lt;P&gt;example.domain.com monitor status changed to up/down on node 192.168.2.24:443&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 17:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109628#M7785</guid>
      <dc:creator>marees123</dc:creator>
      <dc:date>2015-05-13T17:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim output</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109629#M7786</link>
      <description>&lt;P&gt;You have most of what you need already.  All you have to do is tweak the regex string and the eval:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=LB example.domain.com* "monitor status *" | rex "\/Common\/(?P&amp;amp;lt;domain&amp;amp;gt;[^ ]+).*\/(?P&amp;amp;lt;node&amp;amp;gt;[\d\.:]+) monitor status (?P&amp;amp;lt;status&amp;amp;gt;\w+\.)" | eval sentence=domain+" monitor status changed to "+status+" on node "+node | table sentence
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 May 2015 17:52:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109629#M7786</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-05-13T17:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim output</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109630#M7787</link>
      <description>&lt;P&gt;Thanks a lot ....:-)&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 18:10:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109630#M7787</guid>
      <dc:creator>marees123</dc:creator>
      <dc:date>2015-05-13T18:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim output</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109631#M7788</link>
      <description>&lt;P&gt;Hi Richgalloway,&lt;/P&gt;

&lt;P&gt;example.domain.com  monitor status changed to down on node 192.168.2.24:443 2015-05-14 02:26:18&lt;BR /&gt;
example.domain.com  monitor status changed to down on node 192.168.2.24:443 2015-05-14 02:26:18&lt;BR /&gt;
example.domain.com  monitor status changed to down on node 192.168.2.24:443 2015-05-14 02:26:22&lt;BR /&gt;
example.domain.com  monitor status changed to up on node 192.168.2.24:443           2015-05-14 02:26:22&lt;BR /&gt;
example.domain.com  monitor status changed to up on node 192.168.2.24:443           2015-05-14 02:26:22&lt;BR /&gt;
example.domain.com  monitor status changed to up on node 192.168.2.24:443           2015-05-14 02:26:26&lt;/P&gt;

&lt;P&gt;shall i get a single entry for down and up in a single search.... if the domain name and IP address is same...&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 07:35:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109631#M7788</guid>
      <dc:creator>marees123</dc:creator>
      <dc:date>2015-05-14T07:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim output</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109632#M7789</link>
      <description>&lt;P&gt;That's easily done using the &lt;CODE&gt;dedup&lt;/CODE&gt; command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=LB example.domain.com* "monitor status *" | rex "\/Common\/(?P&amp;amp;lt;domain&amp;amp;gt;[^ ]+).*\/(?P&amp;amp;lt;node&amp;amp;gt;[\d\.:]+) monitor status (?P&amp;amp;lt;status&amp;amp;gt;\w+\.)" | dedup domain node | eval sentence=domain+" monitor status changed to "+status+" on node "+node | table sentence
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 May 2015 13:19:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109632#M7789</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-05-14T13:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim output</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109633#M7790</link>
      <description>&lt;P&gt;Thank you:-)&lt;/P&gt;

&lt;P&gt;but it is displaying only UP not down... &lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 06:32:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109633#M7790</guid>
      <dc:creator>marees123</dc:creator>
      <dc:date>2015-05-15T06:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to trim output</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109634#M7791</link>
      <description>&lt;P&gt;It is displaying the most recent status.  To show the most recent down and up states, change the dedup command to &lt;CODE&gt;dedup domain node status&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 14:32:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-trim-output/m-p/109634#M7791</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-05-15T14:32:10Z</dc:date>
    </item>
  </channel>
</rss>

