Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/loongcollector
/ functions
Functions
13,853 in github.com/alibaba/loongcollector
⨍
Functions
13,853
◇
Types & classes
2,558
↓ 77 callers
Method
DataSize
core/models/RawEvent.cpp:47
↓ 77 callers
Method
SetMetadata
core/models/MetricEvent.cpp:99
↓ 76 callers
Method
Flush
Flush flushes data to destination, such as SLS, console, file, etc. It is expected to return no error at most time because IsReady will be called befo
pkg/pipeline/flusher.go:65
↓ 74 callers
Method
IsOpen
core/common/LogFileOperator.cpp:128
↓ 74 callers
Method
begin
core/common/StringTools.h:299
↓ 74 callers
Function
usleep
core/common/TimeUtil.h:89
↓ 73 callers
Method
Do
(req *http.Request)
plugins/flusher/http/flusher_http.go:71
↓ 73 callers
Method
GetTags
()
pkg/models/pipeline.go:22
↓ 72 callers
Method
HasTag
core/models/SpanEvent.cpp:51
↓ 71 callers
Function
OneJob
Write {logNum} logs to {filename} filename: /{workpath}/{jobname}.log
core/unittest/sender/SenderUnittest.cpp:145
↓ 71 callers
Method
Stop
(exit bool)
pluginmanager/plugin_runner.go:61
↓ 69 callers
Method
AddOrUpdateConfig
core/ebpf/plugin/agentsight/AgentsightManager.cpp:398
↓ 69 callers
Method
Open
Open the event log. checkpoint points to the last successfully read event in this event log. Read will resume from the next record. To start reading f
plugins/input/input_wineventlog/eventlog/eventlog.go:48
↓ 69 callers
Function
enum_name
core/common/magic_enum.hpp:205
↓ 68 callers
Function
GetProcessExecutionDir
core/common/RuntimeUtil.cpp:41
↓ 68 callers
Method
SetContentNoCopy
core/ebpf/plugin/ProcessCacheValue.h:43
↓ 67 callers
Method
DoSerialize
core/collection_pipeline/serializer/SLSSerializer.h:83
↓ 67 callers
Method
GetContext
core/plugin/flusher/kafka/KafkaProducer.cpp:87
↓ 67 callers
Method
Reset
Reset resets the aggregators caches and aggregates.
pkg/pipeline/aggregator.go:33
↓ 67 callers
Function
SetEnv
core/unittest/Unittest.h:242
↓ 66 callers
Method
GetMetadata
core/models/MetricEvent.cpp:87
↓ 66 callers
Method
GetPlugin
core/task_pipeline/TaskPipeline.h:40
↓ 65 callers
Method
UpdateReaderManual
core/file_server/reader/LogFileReader.cpp:2624
↓ 63 callers
Function
IsSafeString
(str1, str2 string)
pkg/util/string_helper.go:47
↓ 63 callers
Method
end
* @brief 获取字段迭代器结束位置 * @return StringViewSplitterIterator */
core/host_monitor/common/FastFieldParser.h:74
↓ 62 callers
Method
CreateIntGauge
core/monitor/metric_models/MetricRecord.cpp:57
↓ 62 callers
Method
GetLastLine
core/file_server/reader/LogFileReader.cpp:2089
↓ 61 callers
Method
Empty
core/models/LogEvent.h:95
↓ 61 callers
Method
Fatal
Fatal uses fmt.Sprint to construct and log a message, then calls os.Exit(1).
external/github.com/elastic/beats/v7/libbeat/logp/logger.go:84
↓ 61 callers
Method
Stat
core/common/LogFileOperator.cpp:79
↓ 60 callers
Function
NewMetricLog
NewMetricLog create a metric log, time support unix milliseconds and unix nanoseconds. Note: must pass safe string
pkg/helper/log_helper.go:258
↓ 59 callers
Method
addMetric
(collector pipeline.Collector, name string, labels *helper.MetricLabels, value float64)
plugins/input/systemv2/input_system_v2.go:108
↓ 59 callers
Method
what
core/common/ExceptionBase.h:29
↓ 58 callers
Function
IsDigitsDotsHostname
For hostnames in the following format, gethostbyname will fake an IP (and thus return wrong IP): 1. a, where a is a number between 0 and 2^32-1; 2. a.
core/common/MachineInfoUtil.cpp:494
↓ 58 callers
Method
Write
(ch chan *T)
pluginmanager/flusher_out_store.go:42
↓ 58 callers
Function
ebpf_log
core/ebpf/driver/Log.cpp:27
↓ 57 callers
Method
AddMetricEvent
core/models/PipelineEventGroup.cpp:202
↓ 57 callers
Function
newK8sMetaCache
(stopCh chan struct{}, resourceType string)
pkg/helper/k8smeta/k8s_meta_cache.go:41
↓ 56 callers
Method
Add
Add the metric to the aggregator.
pkg/pipeline/aggregator.go:42
↓ 56 callers
Method
GetDevInode
core/file_server/reader/LogFileReader.h:353
↓ 56 callers
Method
Lookup
core/ebpf/plugin/ProcessCache.cpp:42
↓ 55 callers
Function
GenerateHashKey
core/common/RandomUtil.cpp:75
↓ 55 callers
Function
NormalizeNativePath
core/common/FileSystemUtil.cpp:434
↓ 55 callers
Method
WithLabels
(labels ...LabelPair)
pkg/selfmonitor/metrics_type.go:68
↓ 54 callers
Function
GetOptionalStringParam
core/common/ParamExtractor.cpp:101
↓ 54 callers
Method
IsValidToPush
core/collection_pipeline/queue/SenderQueueManager.cpp:200
↓ 53 callers
Method
CheckFileSignatureAndOffset
core/file_server/reader/LogFileReader.cpp:1303
↓ 52 callers
Method
SetContent
core/ebpf/plugin/ProcessCacheValue.h:47
↓ 52 callers
Function
UnsetEnv
core/unittest/Unittest.h:250
↓ 51 callers
Method
Fatalf
Fatalf uses fmt.Sprintf to log a templated message, then calls os.Exit(1).
external/github.com/elastic/beats/v7/libbeat/logp/logger.go:122
↓ 51 callers
Method
GetFileSize
core/common/FileSystemUtil.cpp:810
↓ 51 callers
Method
GetTimestampNanosecond
core/models/PipelineEvent.h:49
↓ 51 callers
Method
GetType
()
test/engine/setup/env.go:25
↓ 51 callers
Method
Wait
core/common/Thread.h:44
↓ 50 callers
Method
Collector
nolint
pkg/pipeline/pipeline.go:20
↓ 50 callers
Function
NewCounterMetricAndRegister
NewCounterMetricAndRegister creates a new DeltaMetric and register it's metricVector to the MetricsRecord.
pkg/selfmonitor/metrics_vector_imp.go:172
↓ 50 callers
Function
NewLogContents
()
pkg/models/factory.go:185
↓ 50 callers
Method
SendAlarmCritical
core/monitor/AlarmManager.h:160
↓ 48 callers
Function
CheckTimeFormat
core/unittest/processor/ProcessorParseTimestampNativeUnittest.cpp:95
↓ 48 callers
Method
Done
()
plugins/flusher/kafkav2/scram_client.go:49
↓ 48 callers
Method
Get
(key []string)
pkg/helper/k8smeta/k8s_meta_manager.go:26
↓ 48 callers
Method
InitReader
core/file_server/reader/LogFileReader.cpp:328
↓ 48 callers
Function
XXH_readLE64
core/common/xxhash/xxhash.h:2649
↓ 47 callers
Function
DoubleToString
core/common/StringTools.cpp:437
↓ 47 callers
Function
NewTags
()
pkg/models/factory.go:38
↓ 46 callers
Method
Process
(fileBlock []byte, noChangeInterval time.Duration)
plugins/input/docker/stdout/docker_stdout_processor.go:218
↓ 46 callers
Method
PushQueue
core/runner/ProcessorRunner.cpp:71
↓ 46 callers
Function
ZeroCopyBytesToString
nolint:gosec
pkg/util/string_helper.go:23
↓ 46 callers
Function
ZeroCopyStringToBytes
nolint:gosec
pkg/util/string_helper.go:35
↓ 45 callers
Method
HasDiff
core/config/ConfigDiff.h:35
↓ 45 callers
Method
MetricKey
core/ebpf/type/table/DataTable.h:33
↓ 45 callers
Method
Pop
core/collection_pipeline/queue/BoundedProcessQueue.cpp:53
↓ 45 callers
Method
SetProcessQueueKey
core/collection_pipeline/CollectionPipelineContext.h:53
↓ 44 callers
Method
Collect
Collect takes in an accumulator and adds the metrics that the Input gathers. This is called every "interval"
pkg/pipeline/input.go:31
↓ 44 callers
Method
GetEntity
注意: 不要在类初始化时调用并缓存结果,因为此时ECS元数据可能尚未就绪 建议在实际使用时再调用此方法
core/common/MachineInfoUtil.h:129
↓ 44 callers
Method
GetKey
key: fd + "_" + dev + "_" + inode
core/common/FileInfo.h:70
↓ 44 callers
Function
PathJoin
PathJoin concats base and sub (by adding necessary path separator). NOTE: the implementation is not elegant for better performance (backward).
core/common/FileSystemUtil.h:44
↓ 44 callers
Method
RegisterSendFunc
(key string, sendFunc SendFunc, interval int)
pkg/helper/k8smeta/k8s_meta_manager.go:31
↓ 43 callers
Method
GetQueueKey
core/file_server/reader/LogFileReader.h:414
↓ 43 callers
Method
IsDir
core/common/FileSystemUtil.cpp:673
↓ 42 callers
Method
Printf
(format string, v ...interface{})
plugins/input/mqtt/input_mqtt.go:67
↓ 41 callers
Function
ReadLogVal
ReadLogVal returns the log content value for the input key, and returns empty string when not found.
plugins/test/common.go:283
↓ 40 callers
Function
GetCurrentTimeInMilliSeconds
core/common/TimeUtil.cpp:92
↓ 40 callers
Function
GetIPAddress
()
pkg/util/net_helper.go:43
↓ 40 callers
Function
GetOptionalBoolParam
core/common/ParamExtractor.cpp:31
↓ 40 callers
Method
InitGlobalLoggers
core/logger/Logger.cpp:109
↓ 40 callers
Method
IsStarted
core/unittest/pipeline/LogtailPluginMock.h:91
↓ 40 callers
Method
Status
()
pkg/helper/containercenter/container_center.go:299
↓ 39 callers
Method
FindEvent
core/file_server/event/EventQueue.cpp:107
↓ 39 callers
Method
GetStatus
core/models/SpanEvent.h:193
↓ 39 callers
Method
GetStatusCode
core/common/http/HttpResponse.h:86
↓ 39 callers
Function
NewTagsWithKeyValues
(keyValues ...string)
pkg/models/factory.go:25
↓ 38 callers
Method
Build
Build builds a query from the given parameters. The query is returned as a XML string and can be used with Subscribe function.
external/github.com/elastic/beats/v7/winlogbeat/sys/wineventlog/query.go:75
↓ 38 callers
Method
Collect
Recommend to report log data in a stream mode. The service/instance/endpoint of the log could share the previous value if they are not set. Reporting
plugins/input/skywalkingv3/skywalking/network/logging/v3/Logging_grpc.pb.go:27
↓ 38 callers
Method
Decode
Decode reader to logs
pkg/pipeline/extensions/decoder.go:27
↓ 38 callers
Function
GetMandatoryStringParam
core/common/ParamExtractor.cpp:174
↓ 38 callers
Method
ReadFile
core/file_server/reader/LogFileReader.cpp:1925
↓ 38 callers
Method
processEntityJSONObject
(obj interface{})
plugins/input/kubernetesmetav2/meta_collector.go:371
↓ 37 callers
Method
AddCache
core/ebpf/plugin/ProcessCache.cpp:67
↓ 37 callers
Method
Clone
()
pkg/models/pipeline.go:34
← previous
next →
101–200 of 13,853, ranked by callers