<?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: Multikvs on Multiple Lines in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Multikvs-on-Multiple-Lines/m-p/20900#M195</link>
    <description>&lt;P&gt;Okay, I have decided to break the events into several chunks. &lt;/P&gt;

&lt;P&gt;First break would be the Real Servers Info component, and it goes something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Real Servers Info
========================
State - ACT:active, ENB:enabled, FAL:failed, TST:test, SUS:suspect,
        GDN:grace-dn, DIS:disabled, UNK:unknown, UNB:unbind,
        AWU:await-unbind, AWD: await-shutdown
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Second break onwards will be denoted by the Name: Realserver1, Name: Realserver2 etc.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    Name: Realservr1                     State: Active              IP:192.168.88.215:   1
    Mac: 000c.2957.46a5          Weight: 1/1              MaxConn: 2000000
    SrcNAT: not-cfg, not-op      DstNAT: not-cfg, not-op    Serv-Rsts: 0
    Port    St  Ms CurConn TotConn    Rx-pkts   Tx-pkts   Rx-octet   Tx-octet   Reas
    ----    --  -- ------- -------    -------   -------   --------   --------   ----
    default UNB 0  0       0          0         0         0          0          0
    http    FAL 0  0       0          0         0         0          0          0
    Server  Total  0       0          0         0         0          0          0 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My props looks something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;BREAK_ONLY_BEFORE = Name:
MUST_BREAK_AFTER = telnet@ServerIronADX 1000#
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I think this is working, and I am able to multikv and report correctly.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jan 2011 13:06:14 GMT</pubDate>
    <dc:creator>twkan</dc:creator>
    <dc:date>2011-01-07T13:06:14Z</dc:date>
    <item>
      <title>Multikvs on Multiple Lines</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Multikvs-on-Multiple-Lines/m-p/20899#M194</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;

&lt;P&gt;I have a piece of log that goes like the below as a single event.&lt;/P&gt;

&lt;P&gt;Basically these are the statistics for 3 of the virtual servers, namely &lt;STRONG&gt;RealServer1&lt;/STRONG&gt;, &lt;STRONG&gt;RealServer2&lt;/STRONG&gt; and &lt;STRONG&gt;RealServer3&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;Question - I want to have a query that allows me to print on information such as the TotConn, Rx-pkts, Tx-pkts etc. for &lt;STRONG&gt;RealServer3&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;In this case, how can I refine my search such that when I apply multikv on the results, I am only applying it to RealServer3, and not to the rest of the virtual servers.  &lt;/P&gt;

&lt;P&gt;I tried to do a search e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=virtuallogs "Name: RealServer3" | multikv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But multikv in this case will also give me the results from RealServer1 and RealServer2 which is not what I wanted.&lt;/P&gt;

&lt;P&gt;Thanks for any inputs again.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Real Servers Info
========================
State - ACT:active, ENB:enabled, FAL:failed, TST:test, SUS:suspect,
        GDN:grace-dn, DIS:disabled, UNK:unknown, UNB:unbind,
        AWU:await-unbind, AWD: await-shutdown
Name: RealServer1            State: Enabled             IP:192.168.1.100:   1
Mac: Unknown                 Weight: 1/1              MaxConn: 2000000
SrcNAT: not-cfg, not-op      DstNAT: not-cfg, not-op    Serv-Rsts: 0
Port    St  Ms CurConn TotConn    Rx-pkts   Tx-pkts   Rx-octet   Tx-octet   Reas
----    --  -- ------- -------    -------   -------   --------   --------   ----
default UNB 0  0       0          0         0         0          0          0
514     ENB 0  0       0          0         0         0          0          0
Server  Total  0       0          0         0         0          0          0   
Name: RealServer2            State: Enabled             IP:192.168.1.101:   1
Mac: Unknown                 Weight: 1/1              MaxConn: 2000000
SrcNAT: not-cfg, not-op      DstNAT: not-cfg, not-op    Serv-Rsts: 0
Port    St  Ms CurConn TotConn    Rx-pkts   Tx-pkts   Rx-octet   Tx-octet   Reas
----    --  -- ------- -------    -------   -------   --------   --------   ----
default UNB 0  0       0          0         0         0          0          0
514     ENB 0  0       0          0         0         0          0          0
Server  Total  0       0          0         0         0          0          0   
Name: RealServer3            State: Active              IP:192.168.88.211:   1
Mac: 000c.29b8.6170          Weight: 1/1              MaxConn: 2000000
SrcNAT: not-cfg, not-op      DstNAT: not-cfg, not-op    Serv-Rsts: 0
Port    St  Ms CurConn TotConn    Rx-pkts   Tx-pkts   Rx-octet   Tx-octet   Reas
----    --  -- ------- -------    -------   -------   --------   --------   ----
default UNB 0  0       0          0         0         0          0          0
http    ACT 0  0       6          0         18        0          1164       0
Server  Total  0       6          0         18        0          1164       0 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Jan 2011 23:45:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Multikvs-on-Multiple-Lines/m-p/20899#M194</guid>
      <dc:creator>silvermail</dc:creator>
      <dc:date>2011-01-05T23:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multikvs on Multiple Lines</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Multikvs-on-Multiple-Lines/m-p/20900#M195</link>
      <description>&lt;P&gt;Okay, I have decided to break the events into several chunks. &lt;/P&gt;

&lt;P&gt;First break would be the Real Servers Info component, and it goes something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Real Servers Info
========================
State - ACT:active, ENB:enabled, FAL:failed, TST:test, SUS:suspect,
        GDN:grace-dn, DIS:disabled, UNK:unknown, UNB:unbind,
        AWU:await-unbind, AWD: await-shutdown
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Second break onwards will be denoted by the Name: Realserver1, Name: Realserver2 etc.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    Name: Realservr1                     State: Active              IP:192.168.88.215:   1
    Mac: 000c.2957.46a5          Weight: 1/1              MaxConn: 2000000
    SrcNAT: not-cfg, not-op      DstNAT: not-cfg, not-op    Serv-Rsts: 0
    Port    St  Ms CurConn TotConn    Rx-pkts   Tx-pkts   Rx-octet   Tx-octet   Reas
    ----    --  -- ------- -------    -------   -------   --------   --------   ----
    default UNB 0  0       0          0         0         0          0          0
    http    FAL 0  0       0          0         0         0          0          0
    Server  Total  0       0          0         0         0          0          0 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My props looks something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;BREAK_ONLY_BEFORE = Name:
MUST_BREAK_AFTER = telnet@ServerIronADX 1000#
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I think this is working, and I am able to multikv and report correctly.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2011 13:06:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Multikvs-on-Multiple-Lines/m-p/20900#M195</guid>
      <dc:creator>twkan</dc:creator>
      <dc:date>2011-01-07T13:06:14Z</dc:date>
    </item>
  </channel>
</rss>

