<?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: rex for chkin chkout in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/rex-for-chkin-chkout/m-p/570670#M198872</link>
    <description>&lt;P&gt;The singleValue visualization is intended for displaying numbers and, as the name implies, shows a single value.&amp;nbsp; Your results have 3 values in 2 events - something not suitable for a singleValue visualization.&lt;/P&gt;&lt;P&gt;If you're trying to make the data stand out more, try using CSS.&amp;nbsp; See&amp;nbsp;&lt;A href="https://www.splunk.com/en_us/blog/customers/splunk-clara-fication-customizing-simplexml-dashboards-with-inline-css.html" target="_blank"&gt;https://www.splunk.com/en_us/blog/customers/splunk-clara-fication-customizing-simplexml-dashboards-with-inline-css.html &lt;/A&gt;for more information.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Oct 2021 19:29:34 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-10-12T19:29:34Z</dc:date>
    <item>
      <title>rex for chkin chkout</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-for-chkin-chkout/m-p/570615#M198857</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;here is the log:&lt;BR /&gt;23:50:26.698 app module1: CHKIN: Total:[&lt;FONT color="#FF00FF"&gt;100000&lt;/FONT&gt;] from table Total:[&lt;FONT color="#333399"&gt;C000003123456&lt;/FONT&gt;] from PC1&lt;BR /&gt;23:33:39.389 app module2: CHKOUT: Total:[&lt;FONT color="#33CCCC"&gt;10&lt;/FONT&gt;] from table Total:[&lt;FONT color="#FF6600"&gt;C000000000000&lt;/FONT&gt;] from PC2&lt;BR /&gt;23:50:26.698 app module1: CHKIN: Total:[&lt;FONT color="#FF00FF"&gt;100000&lt;/FONT&gt;] from table Total:[&lt;FONT color="#333399"&gt;C000000000030&lt;/FONT&gt;] from PC1&lt;BR /&gt;23:33:39.389 app module2: CHKOUT: Total:[&lt;FONT color="#33CCCC"&gt;10&lt;/FONT&gt;] from table Total:[&lt;FONT color="#FF6600"&gt;C000000000000&lt;/FONT&gt;] from PC2&lt;/P&gt;&lt;P&gt;need to sum values in brackets.&lt;BR /&gt;expected output:&lt;BR /&gt;items&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; total1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;total2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from&amp;nbsp;&lt;BR /&gt;CHKIN&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;200000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3123486&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PC1&lt;BR /&gt;CHKOUT&amp;nbsp; &amp;nbsp;&amp;nbsp;20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PC2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 14:17:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-for-chkin-chkout/m-p/570615#M198857</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2021-10-12T14:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: rex for chkin chkout</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-for-chkin-chkout/m-p/570625#M198860</link>
      <description>&lt;P&gt;Here is a regex that matches the sample data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "(?&amp;lt;item&amp;gt;CHKIN|CHKOUT):\s+Total:\[(?&amp;lt;total&amp;gt;\d+)].*Total:\[C(?&amp;lt;table&amp;gt;\d+)] from (?&amp;lt;from&amp;gt;\w+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this run-anywhere query produces the sample results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval data="23:50:26.698 app module1: CHKIN: Total:[100000] from table Total:[C000003123456] from PC1|
23:33:39.389 app module2: CHKOUT: Total:[10] from table Total:[C000000000000] from PC2|
23:50:26.698 app module1: CHKIN: Total:[100000] from table Total:[C000000000030] from PC1|
23:33:39.389 app module2: CHKOUT: Total:[10] from table Total:[C000000000000] from PC2" | eval data=split(data,"|") | mvexpand data | eval _raw=data
```The above commands are just to produce sample data```
| rex "(?&amp;lt;item&amp;gt;CHKIN|CHKOUT): Total:\[(?&amp;lt;total&amp;gt;\d+)].*Total:\[C(?&amp;lt;table&amp;gt;\d+)] from (?&amp;lt;from&amp;gt;\w+)"
| stats sum(total) as "total sum", sum(table) as table by item  from
| table item "total sum" table from&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 16:43:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-for-chkin-chkout/m-p/570625#M198860</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-12T16:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: rex for chkin chkout</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-for-chkin-chkout/m-p/570641#M198863</link>
      <description>&lt;P&gt;Thank you for answer, but there are two spaces after chkout, it will remove when i copy past here&lt;/P&gt;&lt;P&gt;here is the correct log:&lt;/P&gt;&lt;P&gt;23:50:26.698 app module1: CHKIN: Total:[&lt;FONT color="#FF00FF"&gt;100000&lt;/FONT&gt;] from table Total:[&lt;FONT color="#333399"&gt;C000003123456&lt;/FONT&gt;] from PC1&lt;/P&gt;&lt;P&gt;23:33:39.389 app module2: CHKOUT:&amp;nbsp;&amp;nbsp; Total:[&lt;FONT color="#33CCCC"&gt;10&lt;/FONT&gt;] from table Total:[&lt;FONT color="#FF6600"&gt;C000000000000&lt;/FONT&gt;] from PC2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 15:35:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-for-chkin-chkout/m-p/570641#M198863</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2021-10-12T15:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: rex for chkin chkout</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-for-chkin-chkout/m-p/570654#M198866</link>
      <description>&lt;P&gt;Thanks for sharing.&amp;nbsp; I'm assuming you want me to tell you how to handle that.&amp;nbsp; See my revised reply.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 16:43:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-for-chkin-chkout/m-p/570654#M198866</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-12T16:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: rex for chkin chkout</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-for-chkin-chkout/m-p/570662#M198870</link>
      <description>&lt;P&gt;Thank you for answer, it&amp;nbsp;&lt;SPAN&gt;work like a charm.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;instead of last line “| table…” &amp;nbsp;is it possible show result as single value? Big numbers in dashboard.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CHKIN&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;200000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3123486 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CHKOUT&amp;nbsp; &amp;nbsp;&amp;nbsp;20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 18:16:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-for-chkin-chkout/m-p/570662#M198870</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2021-10-12T18:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: rex for chkin chkout</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-for-chkin-chkout/m-p/570670#M198872</link>
      <description>&lt;P&gt;The singleValue visualization is intended for displaying numbers and, as the name implies, shows a single value.&amp;nbsp; Your results have 3 values in 2 events - something not suitable for a singleValue visualization.&lt;/P&gt;&lt;P&gt;If you're trying to make the data stand out more, try using CSS.&amp;nbsp; See&amp;nbsp;&lt;A href="https://www.splunk.com/en_us/blog/customers/splunk-clara-fication-customizing-simplexml-dashboards-with-inline-css.html" target="_blank"&gt;https://www.splunk.com/en_us/blog/customers/splunk-clara-fication-customizing-simplexml-dashboards-with-inline-css.html &lt;/A&gt;for more information.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 19:29:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-for-chkin-chkout/m-p/570670#M198872</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-12T19:29:34Z</dc:date>
    </item>
  </channel>
</rss>

