<?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: How can I send event log to custom search commands in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-send-event-log-to-custom-search-commands/m-p/625550#M14924</link>
    <description>&lt;P&gt;That doesn't really explain what analysis shodan is doing so it is not possible to determine whether this could be done in SPL instead.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Dec 2022 17:23:52 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-12-30T17:23:52Z</dc:date>
    <item>
      <title>How can I send event log to custom search commands</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-send-event-log-to-custom-search-commands/m-p/625524#M14919</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello !!&lt;/P&gt;&lt;P&gt;I want to read index=test line by line and then analyze log by&amp;nbsp; log_dict and parser_log&amp;nbsp; function..&lt;/P&gt;&lt;P&gt;is it possible??&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am very desperate to solve this problem. please help me..ㅠ.ㅠ&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;@Configuration()
class GenerateTESTCommand(GeneratingCommand):
    
    event_log = read event_log(index)
    
    def generate(self):
        log = self.log_dict(self.event_log)
        if log:
            try:
                result = self.parse_log(log)
                yield result
                
            except BaseException as ex:
                print(log, ex)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 10:46:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-send-event-log-to-custom-search-commands/m-p/625524#M14919</guid>
      <dc:creator>bkhwang</dc:creator>
      <dc:date>2022-12-30T10:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I send event log to custom search commands</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-send-event-log-to-custom-search-commands/m-p/625528#M14920</link>
      <description>&lt;P&gt;If you are struggling to write a custom command, perhaps if you describe exactly what you are trying to achieve, there may be another way to do it with SPL?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 12:08:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-send-event-log-to-custom-search-commands/m-p/625528#M14920</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-12-30T12:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I send event log to custom search commands</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-send-event-log-to-custom-search-commands/m-p/625529#M14921</link>
      <description>&lt;P&gt;Umm&amp;nbsp; I want to analyze my office log by other platform(like shodan)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firtst, I send firewall log&amp;nbsp; to splunk server and make index&amp;nbsp; like index='test'&lt;/P&gt;&lt;P&gt;Second, if new log occured, my custom searchcommands read log and return new log which analyzed by shodan, censys.&lt;/P&gt;&lt;P&gt;Third, Draw&amp;nbsp; graphes on dashboard with a new log&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 12:41:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-send-event-log-to-custom-search-commands/m-p/625529#M14921</guid>
      <dc:creator>bkhwang</dc:creator>
      <dc:date>2022-12-30T12:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I send event log to custom search commands</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-send-event-log-to-custom-search-commands/m-p/625550#M14924</link>
      <description>&lt;P&gt;That doesn't really explain what analysis shodan is doing so it is not possible to determine whether this could be done in SPL instead.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 17:23:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-send-event-log-to-custom-search-commands/m-p/625550#M14924</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-12-30T17:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I send event log to custom search commands</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-send-event-log-to-custom-search-commands/m-p/625558#M14928</link>
      <description>&lt;P&gt;Event log looks like&amp;nbsp; event_log = ' "srcip" = "1.1.1.1"'&lt;/P&gt;&lt;P&gt;Analyze event_log using python script(searchcommand)&lt;/P&gt;&lt;P&gt;After analyze, new_log made&lt;/P&gt;&lt;P&gt;python script -&amp;gt; shodan.api(event_log) -&amp;gt; new_log&lt;/P&gt;&lt;P&gt;new_log = '"srcip" = "1.1.1.1", "srccountry=Japan"'&lt;/P&gt;</description>
      <pubDate>Sat, 31 Dec 2022 01:25:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-send-event-log-to-custom-search-commands/m-p/625558#M14928</guid>
      <dc:creator>bkhwang</dc:creator>
      <dc:date>2022-12-31T01:25:19Z</dc:date>
    </item>
  </channel>
</rss>

