<?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: Custom Splunk query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Custom-Splunk-query/m-p/680927#M232715</link>
    <description>&lt;TABLE border="1" width="25.548387096774192%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;application_codes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;1206&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;1729&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to see only the above application codes, that is from csv file only.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Mar 2024 23:50:26 GMT</pubDate>
    <dc:creator>Ash1</dc:creator>
    <dc:date>2024-03-16T23:50:26Z</dc:date>
    <item>
      <title>Custom Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Splunk-query/m-p/680922#M232711</link>
      <description>&lt;LI-CODE lang="markup"&gt;|mstats sum(faliure.count) as Failed where index=metric-logs by service application_codes&lt;/LI-CODE&gt;&lt;P&gt;Form the above query i am getting the results of service and application_codes.&lt;/P&gt;&lt;P&gt;But my requirement is to get the application_codes from a csv file and&amp;nbsp; from only type=error1&lt;/P&gt;&lt;P&gt;below is the csv file&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;application_codes&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Description&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Type&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;error descp 1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;error1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;10&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;error descp 2&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;error2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;10870&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;error descp 3&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;error3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;1206&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;error descp 1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;error1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;11&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;error descp 3&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;error3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;17&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;error descp 2&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;error2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;18&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;error descp 1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;error1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;14&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;error descp 2&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;error2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;1729&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;error descp 1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;error1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2024 22:03:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Splunk-query/m-p/680922#M232711</guid>
      <dc:creator>Ash1</dc:creator>
      <dc:date>2024-03-16T22:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Splunk-query/m-p/680923#M232712</link>
      <description>&lt;P&gt;Try lookup of application_codes in csv and then filter by type&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2024 22:13:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Splunk-query/m-p/680923#M232712</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-03-16T22:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Splunk-query/m-p/680924#M232713</link>
      <description>&lt;LI-CODE lang="markup"&gt;|mstats sum(faliure.count) as Failed where index=metric-logs by service application_codes
|lookup app.csv  application_codes&lt;/LI-CODE&gt;&lt;P&gt;when i run the above query i am getting application_codes from mstats query not from csv file&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2024 22:21:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Splunk-query/m-p/680924#M232713</guid>
      <dc:creator>Ash1</dc:creator>
      <dc:date>2024-03-16T22:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Splunk-query/m-p/680925#M232714</link>
      <description>&lt;P&gt;Please can you give an example of your expected results?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2024 22:44:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Splunk-query/m-p/680925#M232714</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-03-16T22:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Splunk-query/m-p/680927#M232715</link>
      <description>&lt;TABLE border="1" width="25.548387096774192%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;application_codes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;1206&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;1729&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to see only the above application codes, that is from csv file only.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2024 23:50:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Splunk-query/m-p/680927#M232715</guid>
      <dc:creator>Ash1</dc:creator>
      <dc:date>2024-03-16T23:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Splunk-query/m-p/680931#M232717</link>
      <description>&lt;P&gt;For this problem, using the lookup in subsearch is more direct and potentially more efficient.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|mstats sum(faliure.count) as Failed where index=metric-logs by service application_codes
| search type = error1
  [inputlookup app.csv]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2024 01:12:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Splunk-query/m-p/680931#M232717</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-03-17T01:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Splunk query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Splunk-query/m-p/680946#M232719</link>
      <description>&lt;P&gt;If you just want the application codes, why are you doing the mstats?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup app.csv
| where Type="error1"
| table application_codes&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 17 Mar 2024 10:39:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Splunk-query/m-p/680946#M232719</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-03-17T10:39:03Z</dc:date>
    </item>
  </channel>
</rss>

