<?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: Selective display of values where column names are field values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Selective-display-of-values-where-column-names-are-field-values/m-p/703817#M238518</link>
    <description>&lt;P&gt;perfect, thank you&lt;/P&gt;</description>
    <pubDate>Thu, 07 Nov 2024 14:49:25 GMT</pubDate>
    <dc:creator>kenbaugher</dc:creator>
    <dc:date>2024-11-07T14:49:25Z</dc:date>
    <item>
      <title>Selective display of values where column names are field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Selective-display-of-values-where-column-names-are-field-values/m-p/703810#M238514</link>
      <description>&lt;P&gt;After looking at some examples online, I was able to come up with the below query, which can display one or more columns of data based on the selection of "sysname".&lt;/P&gt;&lt;P&gt;What we would like to do with this is optionally just two sysnames, and only the rows where the values do not match.&lt;/P&gt;&lt;P&gt;index=idx1 source="file1.log" sysname IN ("SYS1","SYS6")| table sysname value_name value_info | eval {sysname}=value_info | fields - sysname, value_info | stats values(*) as * by value_name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data format is the below and there are a couple hundred value_names for each sysname with varying formats from integer values, to long strings&lt;/P&gt;&lt;P&gt;sysname, value_name, value_info&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above query displays the data something like this&lt;/P&gt;&lt;P&gt;value_name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SYS1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SYS6&lt;BR /&gt;name1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;X&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;Y&lt;BR /&gt;name2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A&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;A&lt;BR /&gt;name3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B&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;C&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 14:23:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Selective-display-of-values-where-column-names-are-field-values/m-p/703810#M238514</guid>
      <dc:creator>kenbaugher</dc:creator>
      <dc:date>2024-11-07T14:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Selective display of values where column names are field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Selective-display-of-values-where-column-names-are-field-values/m-p/703813#M238516</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=idx1 source="file1.log" sysname IN ("SYS1","SYS6")
| table sysname value_name value_info
| eventstats dc(value_info) as distinct_values by value_name
| where distinct_values &amp;gt; 1
| xyseries value_name sysname value_info&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 07 Nov 2024 14:39:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Selective-display-of-values-where-column-names-are-field-values/m-p/703813#M238516</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-11-07T14:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Selective display of values where column names are field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Selective-display-of-values-where-column-names-are-field-values/m-p/703817#M238518</link>
      <description>&lt;P&gt;perfect, thank you&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 14:49:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Selective-display-of-values-where-column-names-are-field-values/m-p/703817#M238518</guid>
      <dc:creator>kenbaugher</dc:creator>
      <dc:date>2024-11-07T14:49:25Z</dc:date>
    </item>
  </channel>
</rss>

