<?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 How to find Fieldnames which have some strings in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-Fieldnames-which-have-some-strings/m-p/636956#M221183</link>
    <description>&lt;P&gt;If there are events like these.&lt;BR /&gt;And I want&amp;nbsp; to find Fieldnames which have "abc"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Event 1&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;File : abcdefg&lt;/P&gt;&lt;P&gt;URL : 1232323232.com&lt;/P&gt;&lt;P&gt;NUM : 1234567899&lt;/P&gt;&lt;P&gt;Name : James&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Event 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;File : abcdefg&lt;/P&gt;&lt;P&gt;URL : 1232323232.abc&lt;/P&gt;&lt;P&gt;NUM : 1234567899&lt;/P&gt;&lt;P&gt;Name : James&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File has "abc" 2 times and URL has "abc" 1 time.&lt;BR /&gt;I want result like this&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;FieldName&lt;/TD&gt;&lt;TD width="50%"&gt;Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;File&lt;/TD&gt;&lt;TD width="50%"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;URL&lt;/TD&gt;&lt;TD width="50%"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;How can I make this result by SPL?&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2023 18:47:51 GMT</pubDate>
    <dc:creator>zegg</dc:creator>
    <dc:date>2023-03-31T18:47:51Z</dc:date>
    <item>
      <title>How to find Fieldnames which have some strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-Fieldnames-which-have-some-strings/m-p/636956#M221183</link>
      <description>&lt;P&gt;If there are events like these.&lt;BR /&gt;And I want&amp;nbsp; to find Fieldnames which have "abc"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Event 1&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;File : abcdefg&lt;/P&gt;&lt;P&gt;URL : 1232323232.com&lt;/P&gt;&lt;P&gt;NUM : 1234567899&lt;/P&gt;&lt;P&gt;Name : James&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Event 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;File : abcdefg&lt;/P&gt;&lt;P&gt;URL : 1232323232.abc&lt;/P&gt;&lt;P&gt;NUM : 1234567899&lt;/P&gt;&lt;P&gt;Name : James&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File has "abc" 2 times and URL has "abc" 1 time.&lt;BR /&gt;I want result like this&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;FieldName&lt;/TD&gt;&lt;TD width="50%"&gt;Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;File&lt;/TD&gt;&lt;TD width="50%"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;URL&lt;/TD&gt;&lt;TD width="50%"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;How can I make this result by SPL?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 18:47:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-Fieldnames-which-have-some-strings/m-p/636956#M221183</guid>
      <dc:creator>zegg</dc:creator>
      <dc:date>2023-03-31T18:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Fieldnames which have some strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-Fieldnames-which-have-some-strings/m-p/636972#M221185</link>
      <description>&lt;LI-CODE lang="markup"&gt;| foreach *
    [| eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=if(like(&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;,"%abc%"),1,null())]
| stats sum(*) as *&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 31 Mar 2023 19:54:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-Fieldnames-which-have-some-strings/m-p/636972#M221185</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-31T19:54:28Z</dc:date>
    </item>
  </channel>
</rss>

